1
trspice
News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 5:12

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I have spent hours straining my braincells and can't get this done so now I am crying out for help.

I want to modify the topic/title where the topic is smaller than the title and the topic is a different color than the title.

It currently appears like this
TOPIC : TITLE
then when you get to the article the title is much smaller than the topic.

I looked at the news_item.html template but they are not separated. A smarty tag <{$story.title}> calls both and I don't know what file the smarty is communicatiing with to get the formatting.

Can someone point me to the file I need to edit to achieve this? Thanks
There's nothing but science....
The Reggae Album

2
gestroud
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 6:24

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


You'll probably find it in your theme's style.css file. Look for something like

item.topic
item.title

3
nachenko
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 9:09

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


The smarty tag is generated this way, one tag that contains both the topic and the article title, instead of creating two separated smarty items.

If you only want to change the look, CSS solution suggested before is fine, but if you want more control on your template, you should have topic title and article title as separated objects.

In News 1.53 there are other smarty tags you could use:

<{$story.news_title}> --> Just the article title
<{$story.topic_title}> --> Just the topic title

This way you'd have separated items to work with.

4
trspice
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 16:18

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


The theme stylesheet only has class .itemTitle but none for topic so any change I make there affects both.

The method Nachenko suggests does separate them though I now have to create additional style class for both which is not a big deal. I figured there must be a style class somewhere in the module that is altering the font size of the article title when I go to the full article and I could edit that.

Thanks.
There's nothing but science....
The Reggae Album

5
trspice
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 16:41

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Wel now I know there must be a style class in the module that needs to be edited.

I edited news_item.html and removed the single smart tag and replaced with the 2 and created a itemTopic style class and all looks fine for the list of articles, but when I go to an article, the topic is at the size I set in its style class but the article topic changes to small fonts. All the changes I've tried won't change it.

In news_article.html I see this line
<div style="padding: 3px; margin-right:3px;"><{include file="db:news_item.html" story=$story}>div>

This is including the file I made the changes but yet it won't execute the style class I assigned.

If you don't get my explanation please look at the page to see
http://tampareggae.com/modules/news/
There's nothing but science....
The Reggae Album

6
AndyM
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 17:13

  • AndyM

  • Quite a regular

  • Posts: 296

  • Since: 2003/8/31


When you are making changes to templates, you need to go into the general settings and set "Check templates for modifications ?" to "yes" - otherwise it won't get updated.

Once you have finished, turn it back off again.

7
trspice
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 18:35

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


AndyM no offense but seeing that I am this deep into hacking codes you should assume that I know to set the general preferences correctly.
There's nothing but science....
The Reggae Album

8
AndyM
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 21:37

  • AndyM

  • Quite a regular

  • Posts: 296

  • Since: 2003/8/31


I try and not assume things as I am not psychic and do not know your level of knowledge with XOOPS.

You'd be surprised the times I have seen people have this exact problem because they didn't know about that setting.

Seriously, I wonder why I bother trying to help at times.

9
tom
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/3 21:47

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Quote:
you should assume


Whats the saying?

You should never assume as it makes an 'ass' out of 'u' and 'me'.

AndyM, I wouldn't worry too much, your right many people do over look a simple thing like this, as it's not always obvious, so it's always worth mentioning as is clearing the temp and cache still.

Your work, modules and help is appreciated by many.

10
nachenko
Re: News 1.53 - I want to modify the topic appearance - How?
  • 2007/5/4 0:55

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


The big difference I see between the article index (index.php) and the full article view (article.php) is that the second one, the one that gives you the problem, is NOT a link.

This is the only difference i can find. Classes seem to be the same, so look for the link style definition for

.itemTitle a {...}

Login

Who's Online

362 user(s) are online (216 user(s) are browsing Support Forums)


Members: 0


Guests: 362


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits