CMS MADE SIMPLE FORGE

News Module

 

[#11550] News summary and detail templates complete control over markup and styling

avatar
Created By: Deleted User (deleteduser_11200)
Date Submitted: 2017-08-28 11:55

Assigned To:
Resolution: Invalid
State: Open
Summary:
News summary and detail templates complete control over markup and styling
Detailed Description:
In the news summary and details page you not always have full control over the
html output.
Here and there links are wrapped in <a></a> tags, sometimes you only need the
href these are not availabel everywhere.

With some Smarty magic it is not that hard to get out the href out of a <a
href=''></a> tag but it would be more convenient if these href's are available
as variables.

Personally I think it is better to not stick any markup in variables but can
imagine this takes some effort for pager stuff.
 

== The news summary page has:

$firstpage, $prevpage, $nextpage, $lastpage these are all wrapped in <a> tags.

Please add: $firsturl, $prevurl, $nexturl, $lasturl so the template developer
has full control.


$entry->morelink: <a
href="http://cmsms.biesheuvel.lan/news/1/35/Test-news-item/">More</a>

and $entry->moreurl which you can style to your own preferences: <a
href="{$entry->moreurl}" class="button">More</a>


== The news detail page has only:

{$return_link}:   <a href="http://cmsms.biesheuvel.lan/news/">Return</a> wrapped
in the <a> tag

there is no {$return_url}  equivalent please add this one also.


Thank you for your consideration. 

History

Comments
avatar
Date: 2017-08-28 12:00
Posted By: Robert Campbell (calguy1000)

{get_template_vars} in your news summary template would show you that
{$firsturl} {$prevurl} etc, are available.
      
avatar
Date: 2017-08-28 12:52
Posted By: Deleted User (deleteduser_11200)

Excuse me see it now. Than the only one missing is:

$return_link on the detail page.
      
Updates

Updated: 2017-08-28 12:00
resolution_id: => 9