Recently Browsing 0 members
No registered users viewing this page.
12 identical templates but with a small piece of different code: can I use processwire to create a single template?By franciccio-ITALIANO
I've created 12 templates that are the same but each with an extra bit of html code.
The piece of code is as follows:
<div> <div class="box-pf"> <i class="fa fa-map-pin fa-2x fa-red faa-pulse animated"></i> <a href=""> <span class="uk-text-middle"><i>Sonchus oleraceus</i> 'Grespino degli Orti'</span></b> </a> </div> </div> On the third line we read "fa-red."
I created 12 similar templates.
The first template has only one box with fa-red, the last template has 12 boxes with icons of 12 different colors.
So. is there any way to have only 1 template and add, if I want and when I want, a small or big, same or different piece of html code?
Is there a module or other solution to select a template with a preview image? Sometimes it is not that easy to describe a template.
e.g. Template with 3 columns (image, title, content, button) or template for a slider with max. 4 pictures.
Even if it is nice to have a description field for a template, a picture says more than thousand words could describe.
And no, I don't think I could develop something like that. I don't even know where to start.🙄
I have just upgraded a site from 2.7 to latest v3.
I have run into a weird issue where a page template setting for slashUrls changes from No to Yes immediately after an ajax call, causing the second ajax call on the page to use the wrong setting.
There is no reference to the $template->slashUrls() in any of my code.
This happens every time I load the page, it's 100% consistent.
I have this running on a second machine under v2.7 and no such weirdness.
I'm lost as to why this is happening, what would cause a PW setting change for slashUrls? Anyone have any ideas?
Is there a way for us to replicate the "http://mydomain.com/processwire/page/edit/?id=xxx" and change the template to match my site template?
I'm terribly happy with the admin / backend page edit. It covers literaly everything I want to empower my non super admin user in updating pages such as validation, repeater management, file upload.
I wish not to allow the users to see the backend for both security and aesthetic reasons.
Thanks and hope to hear from you soon.
after the migration to version 3.0.145 our export templates all of a sudden dont work properly,
we have a functionality where we use a boiler template with a set of fields. for some reason since the upgrade when we select the export template to export it. it wont show any of the fields added after the migration,
as you can see the offer certificate remarks field has been added to the export,
but when we select it it wont come trough