Typesetter CMS: Create a reusable object, structured with page manager

Let’s say you want to add a „call to action“-section beyond the content which is usable inside the template.

  1. Create a regular page holding your contents
  2. Create a new extra content block (/admin/extra), choose type „file include“. (You will notice, that the edit link is disabled inside the backend, ignore this)
  3. Possibility 1: Use Layout Manager
    1. Jump back to your frontend, klick „Layout“ at the top right
    2. Hover the region you wish to include your created extra block, click insert and choose your block
    3. Click save and click abort when finished
  4. Possibility 2: Insert your extra block directly inside your template
    1. Insert the following code to your template: <?php gpOutput::Get(‚Extra‘,’Technical_section_name‘); ?> (the technical section name is the name you choosed with underscores instead of spaces, but still case sensitive!)
    2. Save and reload your page
  5. Now hover the new appeard block (which will show something like „Insert File“ per default), click the edit link and choose the page you created in step 1

The gerat thing about this is: the configuration of this extra is stored globaly and not per page, you have to set it just once and you can reuse it easily. You have it available to print it out inside your Template, or using a simple include section type with the page manager.

    Schreibe einen Kommentar

    Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert


    The reCAPTCHA verification period has expired. Please reload the page.