Cant get content tag to display

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
zimmo
Forum Members
Forum Members
Posts: 27
Joined: Fri Sep 28, 2012 9:00 am

Cant get content tag to display

Post by zimmo »

I cannot get topheader_column_1 to display.

I have this code within a core page template.

Code: Select all

			{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:

Code: Select all

{$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.
Post Reply

Return to “Tips and Tricks”