Jump to content

Scott

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Scott

  1. great, thanks diogo and ryan! i'll try out those methods and see which ones feels right for my site. thanks!
  2. hi guys. just starting out using PW and loving it so far. incredible work, Ryan! i haven't used CMSs too much in the past, but tried out enough and researched enough to know that PW is awesome and just makes simple sense in so many ways. i've been reading a lot about PW, but i can't seem to find any example of the best practice for creating global "shared" content, like for example, a footer with contact info to be the same across all pages. i have 1 idea, but not sure if it's the preferred method - i want to start out using the right method. should i do this, or something else? create a "footer" template and page, make the page status Hidden so it doesn't show up in navs, etc, and pull content from it to all pages using something like: $footer = $pages->get("/footer"); echo $footer->body; // or maybe better yet (i'm just starting out, i think this is the shorthand): echo $pages->get("/footer")->body; or am i missing a key concept of how to do this a different way? and, on a related note: would i do something similar if i wanted to have a "settings" page where the user would fill in things like their Facebook page URL, Twitter name, etc.? then wherever i had a Facebook logo to link to FB or a Twitter logo to link to Twitter, i'd pull in that field from the "settings" page like this? echo $pages->get("/settings")->twitter_name; your help is very much appreciated. thank you!
×
×
  • Create New...