Page 1 of 1
How do I style the $entry->morelink
Posted: Sat Apr 19, 2014 5:59 pm
by sugna
CMSMS 1.11.10 “Pinzon”
News 2.14.2
DEV:
http://eclecticpr.com/index.php?page=home2
I would like to style the {$entry->morelink} in the news summary template.
For example:
class="btn btn-primary"
Code: Select all
<a class="btn btn-primary" href="url">Read More</a>
Thanks for the help.
Shane
Re: How do I style the $entry->morelink
Posted: Sat Apr 19, 2014 6:49 pm
by Dr.CSS
In the News summary template that you use wrap a div with a class you want around the more link code...
Re: How do I style the $entry->morelink
Posted: Sat Apr 19, 2014 7:04 pm
by sugna
Yes I did try that but the issue is the style isn't being applied to the <a>
Your suggestion
Code: Select all
<div class="btn btn-primary">{$entry->morelink}</div>
Result
http://eclecticpr.com/index.php?page=home2
Code: Select all
<div class="btn btn-primary"><a href="http://eclecticpr.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=6&cntnt01origid=16&cntnt01returnid=29">Read More</a></div>
I would like it to do this
http://eclecticpr.com/index.php?page=case-studies
Code: Select all
<p><a class="btn btn-primary" href="index.php?page=reginald-f-lewis-museum">Read More</a></p>
Just trying not to add extra styles.
Re: How do I style the $entry->morelink
Posted: Sat Apr 19, 2014 7:11 pm
by Jo Morg
You can use the {$entry->moreurl} instead:
Code: Select all
<a class="btn btn-primary" href="{$entry->moreurl}">Read More</a>
[SOLVED]Re: How do I style the $entry->morelink
Posted: Sat Apr 19, 2014 7:40 pm
by sugna
Thank you. I just figured that out as I was making a coffee run.
But thanks to both of you.