Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6889961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:13:19+00:00 2026-05-27T06:13:19+00:00

The scenario: A homepage that is generated with PHP and a template engine. The

  • 0

The scenario:

  • A homepage that is generated with PHP and a template engine.
  • The page is being redesigned.
  • The new design is based on jQuery UI.
  • The current CMS uses multiple templates: a page template, an article details template, a comments template etc.

The problem:
Some templates (like the article details template) generate html fragments that should use jQuery UI elements like tabs. Currently the data source of the page template does not contain any information which elements should be turned into jQuery UI elements in the main jQuery call in the documents head.

Possible solution
Add a CSS class like “jqTabs” to the html markup of the sub-templates and use the selector .jqTabs in the main jQuery script.

Question
Is this a bad idea?

BTW: “Use a different CMS” is not a valid answer, because this is not an option right now (deadline, budget,… you name it -.- ).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:13:20+00:00Added an answer on May 27, 2026 at 6:13 am

    Not a bad idea at all.

    That is one of the primary uses of classes.

    A class (like and ID) can be used as both a way to style an element and / or a hook for scripting.

    In this case, it might be the best possible solution, as it allows for what seems to be minimal markup changes for a wider redesign.

    And it is easily reversible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm brand new to MVC and have just come across a scenario that I
Let's say you have this scenario:a simple blog home-page that loads both static content
Scenario: You have an ASP.Net webpage that should display the next image in a
Scenario is that we send out thousands of emails through SMTP server. Content is
Scenario: An event is raised in class A that needs to be handled by
I have a TYPO3 Web site that needs to have its home page (and
SCENARIO: I have a Pictures table that contains hundreds of photos. I'm currently using
I am new to Prism. Imagin a scenario where you want to develop a
Feature Scenario: As a user that has not signed in I want to be
It seems that I'll never get along with mod_rewrite... I'm in the typical scenario:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.