[SOLVED]Problem with News module title & extra content block

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
uleih
New Member
New Member
Posts: 2
Joined: Fri Mar 08, 2013 7:46 pm

[SOLVED]Problem with News module title & extra content block

Post by uleih »

Hi,

i have problem with News module title and content block "Slider" in one template

Code: Select all

{content block=slider label="Slider" wysiwyg="false" tab='Slider' smarty='true' assign=slider}
Clicking on News title should redistrict like roo_url/news.html page titles do and {$slider} gone .

http://www.angelicweb.com/henry/clickin ... epage_.JPG

http://www.angelicweb.com/henry/clickin ... _page_.JPG

Template code

Code: Select all

	{capture assign=slider_there}{$slider}{/capture} 
	{if $slider_there} 
		{$slider}
	{/if}
	
	<section id="content_container" {if $slider_there} style="display:none;" {/if}>
		<article class="content wrapper clearfix">
		{menu action='breadcrumbs'}  
		<h1>{title}</h1>
			{content}
		</article>
	</section>

	<section id="news_container">
		<div class="news_title wrapper">
			{news summarytemplate="news_title" number="3"}
		</div>
	</section>
I just solved new title and content block in one template problem, but i am looking better solution.

Code: Select all

<!-- 17 is {root_url}/news.html page value -->

{assign var='returnid' value=17}
{assign var='aliased_title' value=munge_string_to_url({$entry->title})}

<h3>News:</h3>
    <ul>
{foreach from=$items item=entry}
        <li><a href='{root_url}/news/{$entry->id}/{$returnid}/{$aliased_title}' title='{$entry->title|cms_escape:htmlall}'>{$entry->title|cms_escape}</a>
{$entry->news_url}
</li>

{/foreach}
<ul>
Problem is in $returnid or $detailpage. I think this should be same as "{root_url}/news" page have and always same/fixed value.
Post Reply

Return to “CMSMS Core”