Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Adding Sub Heading to Template

New Here ,
Jun 20, 2013 Jun 20, 2013

I'm trying to develop a template to incorporate a sub header but finding it dificult to allocate the space. I've created the Header in the Template by using {module_pagename}. But there seems to be no where I can add ome custom text for a sub header embedded in a template. Any suggestions?

Thanks,

CF.

TOPICS
Content management and modules
542
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 20, 2013 Jun 20, 2013
LATEST

There is no "subheader" field for BC pages.  You can use {module_pagename} and that outputs the "title" field for pages into your templates or pages, but there's no field for subheader so you'll have to manually add it yourself.  And, since that subheader will change on your pages your best bet is to just include it in your page.  If your template code looks like:

<div id="content">

     <h1>{module_pagename}</h1>

     {tag_pagecontent}

</div>

Then the first line of markup for your page using that template could be:

<h2 class="subheader">My subheading for this page</h2>

<div class="entry">

     Your page content here.

</div>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines