Jump to content

Featured Replies

Posted

Hi,

When I create a new Database template, I'm only shown the typical options.

image.png

I'd like to choose between the new templates so I can modify them from that starting point. Such as minimal, featured, etc.?

Any chance to do that?

Solved by Esther E.

Go to solution
  • Community Expert
  • Solution

If you create a new template set (using the form above), you'll get the default templates, which supports all available layouts (yes, in one template, because @Ehren is a magician).

To force a specific layout, modify the categoryTable template:

Find

<ol class="ipsData ipsData--entries {{if is_array( $table->extra ) and isset( $table->extra['layout'] )}}ipsData--{$table->extra['layout']}{{else}}ipsData--table{{endif}} {{foreach $table->classes as $class}}{$class} {{endforeach}} ipsData--cms-entries" id='elTable_{$table->uniqueId}' data-role="tableRows">

Replace with

<ol class="ipsData ipsData--entries ipsData--minimal {{foreach $table->classes as $class}}{$class} {{endforeach}} ipsData--cms-entries" id='elTable_{$table->uniqueId}' data-role="tableRows">

Basically, you can use ipsData--minimal, ipsData--wallpaper, etc, and it will apply the appropriate layout.

  • Author
 

If you create a new template set (using the form above), you'll get the default templates, which supports all available layouts (yes, in one template, because @Ehren is a magician).

To force a specific layout, modify the categoryTable template:

Find

<ol class="ipsData ipsData--entries {{if is_array( $table->extra ) and isset( $table->extra['layout'] )}}ipsData--{$table->extra['layout']}{{else}}ipsData--table{{endif}} {{foreach $table->classes as $class}}{$class} {{endforeach}} ipsData--cms-entries" id='elTable_{$table->uniqueId}' data-role="tableRows">

Replace with

<ol class="ipsData ipsData--entries ipsData--minimal {{foreach $table->classes as $class}}{$class} {{endforeach}} ipsData--cms-entries" id='elTable_{$table->uniqueId}' data-role="tableRows">

Basically, you can use ipsData--minimal, ipsData--wallpaper, etc, and it will apply the appropriate layout.

Aha! So everything is about CSS with no HTML change. That explains why some <div> where hidden hehe.

Understood, many thanks @Esther E. ! Great work from @Ehren , very interesting knowhow for my templates!

Recently Browsing 0

  • No registered users viewing this page.