• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Cant get content tag to display
PostPosted: Wed Nov 27, 2019 8:30 pm 
Offline
Forum Members
Forum Members

Joined: Fri Sep 28, 2012 9:00 am
Posts: 27
I cannot get topheader_column_1 to display.

I have this code within a core page template.
\$1:
         {page_attr page='topheader' key="display_gsth" assign='display_gsth'}
         {if $display_gsth == '+'}
         <div class="top-header">
            <div class="container clearfix">
               <div class="row">
                  <div class="col-sm-3">
                     <h5>{eval var={page_attr page=topheader key="topheader_first_title"}}</h5>
                     {eval var={page_attr page=topheader key="topheader_column_1"}}                        
                  </div>
                  <div class="col-sm-3">
                     <h5>{eval var={page_attr page=topheader key="topheader_second_title"}}</h5>
                     {eval var={page_attr page=topheader key="topheader_column_2"}}                        
                  </div>
                  <div class="col-sm-3">
                  </div>
                  <div class="col-sm-3">
                  </div>
               </div>
            </div>
         </div>
         {/if}



Then I have the following as a core page template:

\$1:
{$display_gsth = "{content block='display_gsth' label='Display Global content (type in +), top header on all pages' tab='Top Header' wysiwyg='false' oneline='true' size='1'}" scope=global}
{$topheader_first_title = "{content block='topheader_first_title' label='First column Title' tab='Top Header' wysiwyg='false' oneline='true'}" scope=global}
{$topheader_column_1 = "{content label='First column Content' tab='Top Header'}" scope=global}

{$topheader_second_title = "{content block='topheader_second_title' label='Second column Title' tab='Top Header' wysiwyg='false' oneline='true'}" scope=global}
{$topheader_column_2 = "{content block='topheader_column_2' label='Second column Content' tab='Top Header'}" scope=global}



I am not sure what I am doing wrong for it not to display the first block.

I have created a page called top header and within this I can set the content, but the first block of content will not show.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting