Recently Browsing 0 members
No registered users viewing this page.
By Robin S
Another little admin helper module...
Template Field Widths
Adds a "Field widths" field to Edit Template that allows you to quickly set the widths of inputfields in the template.
When setting up a new template or trying out different field layouts I find it a bit slow and tedious to have to open each field individually in a modal just to set the width. This module speeds up the process.
Install the Template Field Widths module.
You can set the default presentation of the "Field widths" field to collapsed or open. You can choose Name or Label as the primary identifier shown for the field. The unchosen alternative will become the title attribute shown on hover. You can choose to show the original field width next to the template context field width.
I have done a bit of searching, but I can not seem to find an actual answer. I have a list of services as child pages under "Services". I can output the services just fine, but I cant wrap my head around how to group them "alphabetically" like:
Services A - Service "A" 1 - Service "A" 2 - Service "A" 3 B - Service "B" 1 - Service "B" 2 - Service "B" 3 C - Service "C" 1 - Service "C" 2 - Service "C" 3 Has anyone achieved this type of functionality before?
I have lots of blogposts in my pagetree and I want the pagelabel to include the value of the post’s datefield (only the year).
Adding date | title in the template settings results in something like…
1536012000 | my blogpost title
Is it possible to convert the timestamp to a readable date?
I am trying to get some extra css-file into my admin templates. I managed to modify my admin.php to this:
<?php namespace ProcessWire; require($config->paths->adminTemplates . 'controller.php'); echo "<link rel='stylesheet' type='text/css' href='" . $config->urls->templates . "css/admin.css'>"; By doing so, the css <link> is added to the very end of each parsed admin-html. (right AFTER the closing </body> tag.)
That causes some trouble. e.g. the page tree is not displaying any more. Although, other pages are working - like the edit form of a page.
My question: is there a correct way of adding my extra css to the admin area?
Thanks for you help!