How do I style the $entry->morelink

General project discussion. NOT for help questions.
Post Reply
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm
Location: USA

How do I style the $entry->morelink

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: How do I style the $entry->morelink

Post by Dr.CSS »

In the News summary template that you use wrap a div with a class you want around the more link code...
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm
Location: USA

Re: How do I style the $entry->morelink

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: How do I style the $entry->morelink

Post by Jo Morg »

You can use the {$entry->moreurl} instead:

Code: Select all

<a class="btn btn-primary" href="{$entry->moreurl}">Read More</a>
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm
Location: USA

[SOLVED]Re: How do I style the $entry->morelink

Post by sugna »

Thank you. I just figured that out as I was making a coffee run.

But thanks to both of you.
Post Reply

Return to “General Discussion”