HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Comcode title to hx definition

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#69229 (In Topic #14663)
Avatar

Community saint

Hi Chris & Co.!

'twas wondering where OCP stores the translation between the title tag and the corresponding "h" element? I have need to use h5 and h6 and have them be recognized as title tags, however it seems OCP only recognizes 1 thru 4.

Thanks!
TR

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#69230
Avatar

I'm afraid we don't go that low down, you'd need to use the 'html' tag to place them.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69231
Avatar

Community saint

Hey Chris! Thanks for the reply.

Unfortunately I've tried that and it doesn't seem to work for what I'm hoping to achieve.

Some background: I'm working with the built-in tab display in OCP and nesting them. I'm trying to customize the nested tabs differently (on a global level, not using the div id that is dynamic for each tab so I don't have to add a CSS entry each time a new tabs is added) than the parent tab. To attempt to achieve this, I'm using the following in COMCODE_TAB_CONTROLLER:

Code

<div class="tabs {+START,IF_NON_EMPTY,{TITLE|*}}tabs_{TITLE|*}{+END}">
OCP doesn't seem to recognize {TITLE|*} (maybe I'm using that wrong?) unless it's wrapped in a

Code

[title="X"]Title Here[/title]
tag. Here's what I'd like to get (and this does work great, it's just that I don't want the contents of the title to display in the nested tabs):

Code

<div class="tabs tabs_Title_Here"></div>

The issue is I don't want that title to display (so I can't use the 3 that are defined), so I was hoping to customize an h5 or h6 element display (adding the required functionality to OCP myself assuming it was not a colossal undertaking) to font-size=0 and use something like:

Code

[title="5"]Title Here[/title]
Using CSS with display to none doesn't work either.

*grin*, not sure if the above is going to make any sense, so if need be I'll grab some screen shots. I have the site on my local machine so I can't point you to a URL for a view.

Thanks again!
TR

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#69232
Avatar

I think you're better off coding this in straight HTML to be honest. It's what we do on this site when the design gets a bit too complex for Comcode.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69233
Avatar

Community saint

No worries Chris, thanks. I'll use the div id's that are created and make a note to myself to add a CSS entry when a new tab is added.

Thanks!

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: