Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 17Feb 17 Hi, When I create a new Database template, I'm only shown the typical options.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?
February 17Feb 17 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.
February 19Feb 19 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!