We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Controlling variables with perch:content?
I'm working with the code from the Use Page Attributes for Open Graph Tags example, here's a snippet:
$domain = 'http://'.$_SERVER["HTTP_HOST"]; $url = $domain.$_SERVER["REQUEST_URI"]; $sitename = "The name of my website"; $twittername = "@mytwittername"; $sharing_image = '/images/default_fb_image.jpg';
I'd like to be able to control the content of
$sitename from within the Perch Admin. So instead of hardcoding the value
The name of my website, I'd like to be able to change that in the CMS. How would I do that?
I've already got a
global page, that contains the site name. I'm using
<perch:layout path="global/global--site-name" /> to reuse that in different parts of the website.
Can I use that in
Want to reply to this thread?Login with Perch