templates - How to add tags inside Plone element -


I want to change the standard header of the page element so that I can style it.

  & lt; H1 class = "documentFirstHeading" & gt; My heading & lt; / H1>   

The way the plan puts this element on each page, I want to add one that can be read from the line:

   gt; & Lt; Span & gt; My title & lt; / Span & gt; & Lt; / H1> It is obvious that this code is generated by a macro - but I do not know how to modify the macros to add my span tags. Can someone point me to modify the appropriate plan file? It sets the common CSS image replacement technology, and other Plane sites use it often, because where I want the sponge tag exactly where I need the Plans sites.  

TIA for your expertise!

It really does not matter (the action is very similar), but I think you Creating Theme Package I also believe that you are on a Plane 4.0 or newer. There are actions:

  • Copy to * ks_generic_macro.pt * file located in your topic * skins / your_templates_folder * * products * in CMFPlone / Products / CMFPlone / skins / plone_ks * *. In general terms, it is called "customize the template around your subject".
  • On line 20 (the line number may differ in different plan versions), you will get the block you need:

    Title < / Li>

    To get the duration within your H1, change the talc: replaced to tal: content on the snippet. .

    You may have to restart your Planon site to see your change in action. Check your H1, it should include the period required.

    Important note ! The above work will give you for each normal view, in which the specific template is not overriding. For those cases, you need to customize those special templates.

Comments