Jump to content
Sign in to follow this  
infogroupsmb

Adding a section meta setting to page content

Recommended Posts

infogroupsmb

We have a custom header section with with a meta setting for phone number.  The section has a site wide default number and the specific pages can change their meta setting for the phone.  

 

Now we want to use the header meta setting in the content in the page and/or in the content of other custom sections.  What would be your recommendation for accomplishing this?

Share this post


Link to post
Share on other sites
Rob

Hi,

 

Download the Content Box (if you don't have it already installed) from the Dashboard > PageLines > Store > Sections and apply it via Dashboard > PageLines > Drag & Drop.

 

You can then add the code for your phone number on a page basis or global, via Dashboard > PageLines > Page Options


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
infogroupsmb

I'll check that out.  Thanks.

Share this post


Link to post
Share on other sites
infogroupsmb

Ok, that's basically a blank section.  Handy, but not for what I need.

 

I need to be able to use a plotion from a custom section (the header section we've made) within the main content of the page.  The header and footer share a ploption for the phone number and this plotion can be over-ridden in the specific pages if those pages need a specific different number.  

 

Now, the page creators need to put either the site default phone number or the page specific number within the copy in the page, in the content in the editor window.  So what I'm asking for is a short code that can be inserted in the main editor or some way to pull the ploption and output it within the content.

 

I don't need a new blank section like the Content Box as the number has to do within the flow of the text in the header and footer as well as in the content that the page creators are writing.

Share this post


Link to post
Share on other sites
James B

Hi there,

 

I'm not sure I'm following the thread 100%, but from what I've understood you've already made a custom section and you want to take some data thats being used in that sections meta and then put that into the content area?

 

If you've set it up as a shortcode you can use a hook to print the shortcode into the relevant area in the content. See Matt's reply on this thread - http://www.pagelines.com/forum/topic/22966-how-to-pop-a-modal-from-a-hook/?hl=add_action#39;the_hook_you_want_to_use


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
infogroupsmb

Well I've ended up resolving it with a jQuery rewrite of the content from our custom header into the body copy which is working fine though dependent on client side support.

Share this post


Link to post
Share on other sites
Rob

I'm glad you were able to resolve this.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • RiverRat
      By RiverRat
      Hi I need to add a simple optin form on the landing page on the right of the slider. I want to have a background graphic. I was able to add the image background to the column, but adding the short code in the text box nested in the column did not work for Firefox, but seems to work in Chrome http://buff.ly/1ktuPpP
       
      How would I add a small opt in form to the right of my slider. I do have Gravity forms but wondering how to add the short code to the landing page of DMS. thanks
       
      http://buff.ly/1etPdq9
    • johndb
      By johndb
      Hello, I'm reporting a bug for Danny"] or @[member="martin to check and submit to github.
       
      Placing the shortcode  for a button group into a DMS TextBox section does not work properly.
       
      The shortcode itself displays as text either side of the buttons, and the buttons stack ontop of each other instead of side by side.
       
      The shortcode works in the ContentLoop section which is how I've gotten around this problem. However there is one page where I need multiple rows of button groups so I'm not sure how to do this yet.
       
      The short code also works correctly in the Hero section, and PopThumbs section. I have not tried it anywhere else.
       
      I checked in the PL300 and Gavin Aldrich confirmed this bug and advise me to post this thread,
       
      Thank you.
       
       
    • Toby
      By Toby
      Hi,
       
      I am trying to figure out how to use the shortcode for tabs, I have checked the Documentation under Shortcode>Tabs but there is no example so I don't know what to do with the shortcode.
       
       
      If anyone could provide an example of how to implement the shortcode I would greatly appreciate it.
    • LukeB
      By LukeB
      Hi I'm using ajax to load pages on my site but I am also using the Facebook like button short code http://support.pagelines.me/docs/miscellaneous/shortcodes/

      I need to reload the JS associated with this short code as the Facebook like button disappears when the page is loaded with JS. Could anyone assist me on the location of the file containing the JS? I have the reload code all figured out but I just need the file location.

      Any assistance would be much appreciated.

      Here's my homepage
      http://www.priceofmilk.co.uk/
       
      Link to a post where it will display normally on first load
      http://www.priceofmilk.co.uk/uncategorized/testt

      If you click through to a couple of posts you will notice the like button no longer shows up, it seems to display the first load of a page but if you keep clicking through posts it stops.

      The button should be displayed to the left of the following text beneath the post content 'Click like to get the latest music news, hottest tracks and more via Facebook.'
       
×