Modify a class in a template

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
ssl
Registered User
Posts: 465
Joined: Sat Feb 08, 2020 2:15 pm
Location: France
Name: Fred
Contact:

Modify a class in a template

Post by ssl »

Hi
I am looking for the solution, by a template placed in the event folder, to modify an existing class in a Prosilver template.

The template in question is forumlist_body.html and the class to modify is <div class="forabg">, I want to modify it as well <div class="forabg id{forumrow.FORUM_ID}">

Thank U
Sorry for my English ... I do my best!
User avatar
david63
Registered User
Posts: 18839
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Modify a class in a template

Post by david63 »

Shouldn't it overwrite anyway?

Another option is to use jQuery to overwrite it.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
User avatar
ssl
Registered User
Posts: 465
Joined: Sat Feb 08, 2020 2:15 pm
Location: France
Name: Fred
Contact:

Re: Modify a class in a template

Post by ssl »

If this modification should overwrite the base class in Prosilver.
So this is not possible other than by jQuery?
Sorry for my English ... I do my best!
User avatar
david63
Registered User
Posts: 18839
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Modify a class in a template

Post by david63 »

Is it not, by definition, that css will overwrite any previous css so the last one added would take precedence
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
User avatar
ssl
Registered User
Posts: 465
Joined: Sat Feb 08, 2020 2:15 pm
Location: France
Name: Fred
Contact:

Re: Modify a class in a template

Post by ssl »

For this extension the CSS would be an addition and not a modification
Sorry for my English ... I do my best!
User avatar
david63
Registered User
Posts: 18839
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Modify a class in a template

Post by david63 »

ssl wrote:
Fri Nov 20, 2020 11:27 am
For this extension the CSS would be an addition and not a modification
Sorry but you have lost me now. You said
ssl wrote:
Fri Nov 20, 2020 10:52 am
modify an existing class
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
User avatar
ssl
Registered User
Posts: 465
Joined: Sat Feb 08, 2020 2:15 pm
Location: France
Name: Fred
Contact:

Re: Modify a class in a template

Post by ssl »

I mean the existing CSS in prosilver for this class would not be changed, it's just adding CSS to change the category element on the index
Sorry for my English ... I do my best!
User avatar
ssl
Registered User
Posts: 465
Joined: Sat Feb 08, 2020 2:15 pm
Location: France
Name: Fred
Contact:

Re: Modify a class in a template

Post by ssl »

david63 wrote:
Fri Nov 20, 2020 10:57 am
Another option is to use jQuery to overwrite it.
Like this way?
viewtopic.php?f=461&t=2250581
Sorry for my English ... I do my best!
Post Reply

Return to “Extension Writers Discussion”