-
Posts
4,956 -
Joined
-
Last visited
-
Days Won
100
Everything posted by LostKobrakai
-
Language alternate fields is the keyword here. This allows you to setup any field for multi-language frontends. Just from the UI point it's not as nice as all the native ones.
-
You can always continue on in your own topic. I'd only open a new thread if it's really about something else all together.
-
How to do this: htaccess to only show correct url
LostKobrakai replied to OllieMackJames's topic in General Support
The backend needs GET data all over the place. -
ProCache bypasses PHP all together, so there cannot be any dynamic functionality.
-
I'll try to check this tomorrow. I'm currently pretty swamped between my holiday and another vacation coming up.
-
Or fieldtypeEvent which serves as kind of tutorial fieldtype.
-
Module Module: Admin Page Tree Multiple Sorting
LostKobrakai replied to David Karich's topic in Modules/Plugins
Really nice. I'm still waiting for sort=template to be added to the core as this can be really useful with page-tables, which add pages directly as children. To come to the feedback: The class Process already implements Module, so normally there's no need to implement it again, but … The module shouldn't be a Process module in the first place, as it doesn't provide an interface for admin pages. You can limit the autoload setting to only ProcessPageList, ProcessPageEdit (children tab) -
any way to rename the default superuser username ?
LostKobrakai replied to er314's topic in General Support
Why would you need to do that? You don't need to use it and you can just create new superusers named like you need it. -
You're meta viewport tag seems to be missing.
-
Testing of New user-admin permissions of dev 2.6.10
LostKobrakai replied to adrianmak's topic in Getting Started
You're already highlighting it. The user needs to have the user-admin-role permission, which in turn requires page-edit and user-admin. See "user-admin" as "This role should be able to edit some users, which one I'll tell you later" permission. -
Creating pages from directories and images
LostKobrakai replied to JoshoB's topic in General Support
The line $picture->template = $pages->get($template); seems to be the culpit. -
Could it be the case you've enabled caching for the homepage?
- 13 replies
-
Multisite.module conflict with Processwire 2.6
LostKobrakai replied to robinc's topic in General Support
You could use this module to edit the config.php from the admin backend: https://github.com/ryancramerdesign/ProcessWireConfig- 3 replies
-
- Multisite module
- config.php
-
(and 1 more)
Tagged with:
-
You're using the site/… folder, which I think in case of skins needs to be accessed by an absolute path pointing to the skin's folder. The default skins folder is in the wire/… folder, but there it'll be replaced on updates.
-
Why not iterate over them? If you need to check for all of them then it's the smartest way to do so. $data-color = ""; $colorMap = array( 1025 => '#ffff00', 1029 => '#6d8d24' ); forach($colorMap as $id => $color) { if($project->project_tags->has($id)) $data-color .= $color; } // $data-color now consists of all the colors, where a tag was found.
-
Sort search result (selector) by template
LostKobrakai replied to asbjorn's topic in API & Templates
$parts = array( "Movies" => "movie", "Directors" => "directors" ); foreach($parts as $title => $template){ $results = $pages->find("template=$template, …"); echo "<h2>$title</h2>"; echo "<ul>"; foreach($results as $result){ echo "<li>$result->title</li>"; } echo "</ul>"; } -
Sort search result (selector) by template
LostKobrakai replied to asbjorn's topic in API & Templates
"sort=template, sort=title" in the selector? -
The docs do confirm this. CKEditor does expect an absolute path if you're not using the default skin directory. http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-skin
-
Couldn't you use something like this: "../../../../site/modules/…". Each of those folders should always be nested at the same depth no matter where it's placed inside the filesystem.
-
Adding and Assigning Fields without using gui?
LostKobrakai replied to neildaemond's topic in API & Templates
Since 2013 a bunch of things changed. I'd suggest taking a look at the core import/export feature for files/templates. Sadly the formatting there is quite strict, but if done carefully you can make for example batch changes in a texteditor and import the changes back into pw. -
The most flexible solution would be three branches: Categories, Branches & Products. Each would hold the single items of their content type and you'd link projects to branches / categories via page fields.
-
There's not much to be done about this. Resizing images need processing power, so either the server does have the required power or the images need to be resized on the client. Either using something like this: https://processwire.com/talk/topic/9814-client-side-image-resizing/ or some image software.
-
Active Navigation CSS Not Working with Multiple Menu Locations
LostKobrakai replied to bck2sqr1's topic in General Support
All the "special" api variables that you've at your disposal in the template files are actually not that special, they work exactly like other variables only in the scope they are defined in. If you want to access them independent of any scope you need to use the wire('…') function. -
It's not exactly what I was taking about. I used the Child editor to edit some existing pages and add a few new ones. The parent page to those would only allow for a single template for children, but the template select boxes did show me all templates.