I have been working with the news Module and making updates to the associated Module: News stylesheet in order to appropriately style the news listings and summaries. I am having some issues formatting the Links tied to specific news items however. More specifically, I am not able to customize formatting for the News Summary link or for the Return link. I have been playing around with the classes /divs in the stylesheet that (by name) would seem associated with these items, but no changes are ever reflected in the appearance of the links.
Any suggestions would be much appreciated.
[SOLVED] Formatting News Module Links
-
vangabond
[SOLVED] Formatting News Module Links
Last edited by vangabond on Sun May 18, 2008 6:34 pm, edited 1 time in total.
Re: Formatting News Module Links
Are the y all still named the default classes?...
It would be easier if we had a link, some of the stuff in the news CSS is commented out...
It would be easier if we had a link, some of the stuff in the news CSS is commented out...
-
vangabond
Re: Formatting News Module Links
Hey Mark -
Yeah, I know that some stuff is commented out. I have uncommented the relevant styles and have not changed the names of any of the default classes. For instance, NewsSummaryLink is the name of the class that I would assume is used to format the look of the Summary Link I want modified. No changes I make to that class in the stylesheet are ever reflected in the appearance of the link on the stylesheet. Very strange.
Here is a link to the page: http://www.marcohaber.com/cmsmadesimple/
Yeah, I know that some stuff is commented out. I have uncommented the relevant styles and have not changed the names of any of the default classes. For instance, NewsSummaryLink is the name of the class that I would assume is used to format the look of the Summary Link I want modified. No changes I make to that class in the stylesheet are ever reflected in the appearance of the link on the stylesheet. Very strange.
Here is a link to the page: http://www.marcohaber.com/cmsmadesimple/
Re: Formatting News Module Links
Hi Vangabond,
Try adding a new class to your news style sheet ".NewsSummaryLink a" and apply your styles to it. This should change the appearance of the link. For example:
.NewsSummaryLink a {
color: #bd5000
}
This will change the default appearance of the link in its normal state. You could use psuedo slasses to style the different states after that.
Let me know if this helps.
Try adding a new class to your news style sheet ".NewsSummaryLink a" and apply your styles to it. This should change the appearance of the link. For example:
.NewsSummaryLink a {
color: #bd5000
}
This will change the default appearance of the link in its normal state. You could use psuedo slasses to style the different states after that.
Let me know if this helps.
Re: Formatting News Module Links
Mark is correct is stating that the Print and Return options are commented out at the end of the news stylesheet.
Re: Formatting News Module Links
Perhaps you should be changing the
.NewsSummaryMorelink
class.
Nullig
.NewsSummaryMorelink
class.
Nullig
-
vangabond
Re: Formatting News Module Links
Loopy, Nullig --
Thanks a lot for the helpful advice. Changing the .NewsSummaryLink and #NewsPostDetailReturnLink pseudo-classes did the trick. Somehow I think the default styles for these hyperlinks were at odds with hyperlink styles that I have specified in the main stylesheet tied to the template. Anyway, again, I have finally managed to modify the formatting.
Now -- if I wanted the News Summary to not be a link at all, how would I go about accomplishing this? My sense is that I would need to go into the guts of the News module and make changes there. Any quick tips?
Cheers.
Marco
Thanks a lot for the helpful advice. Changing the .NewsSummaryLink and #NewsPostDetailReturnLink pseudo-classes did the trick. Somehow I think the default styles for these hyperlinks were at odds with hyperlink styles that I have specified in the main stylesheet tied to the template. Anyway, again, I have finally managed to modify the formatting.
Now -- if I wanted the News Summary to not be a link at all, how would I go about accomplishing this? My sense is that I would need to go into the guts of the News module and make changes there. Any quick tips?
Cheers.
Marco
Re: [SOLVED] Formatting News Module Links
In the News summary template remove the red part and you will get just the title...
{$entry->titlelink}
{$entry->titlelink}


