pers0n
Members-
Posts
36 -
Joined
-
Last visited
Everything posted by pers0n
-
I'm not able to get my array list. I have a menu template and I'm grabbing it, but it won't let me go inside it I get this error Warning: Invalid argument supplied for foreach() in /x/site/templates/includes/header.inc on line 61 $items = $pages->find('template=menu, title=Toolbar Menu, include=all'); //THIS SHOULD WORK foreach ($items->menu_item as $item) { $output .= '<li><a href="' . $item->link . '"'; if ($item->open_in_new_window) $output .= ' target="_blank"'; $output .= '>' . $item->title . '</a></li>'; } I'm attaching a screenshot of a selector test
-
If I have a field for URL, say a page needs to link to another page. If the user is viewing the site in Spanish and that link points to the English version, does it know to output the spanish version of the link? And if so redirect the user to the spanish URL? Is the language the visitor views the site in, kept in sessions or something for it to do this? I'd rather not have 2 URL fields
- 1 reply
-
- language
- multilanguage
-
(and 1 more)
Tagged with:
-
Thanks, that's amazing.
- 3 replies
-
- language
- multi-language
-
(and 1 more)
Tagged with:
-
I'm building a multi-language site and wanted to know the best way to deal with images. Because on a multi-language site, they may want a different image for a different language, especially if the image has text in it. What is the best way to deal with this? Should I make another image field for spanish and if they don't put anything there, just use the english image and if there is a spanish image, then use that image for spanish?
- 3 replies
-
- language
- multi-language
-
(and 1 more)
Tagged with:
-
This is for PW 2.4
-
I'm guessing this isn't possible. I've seen where you can set it up so that you can pull the PW standard admin and then override ALL the CSS files, but I just want to append 1 CSS and 1 JS file at the end of the standard admin.
-
I already installed PW, but I want to switch to one of the other themes that were given as an option during install? I'm sure there is an easy way to do this? I searched, but didn't find it. I checked config.php, but didn't see it listed. The only reason I want to change it now, is because I have 2 PW installs, one I'm using the blog setup as a reference for setting up somethings on another site and I want to make sure I keep the admins looking different. Thanks
-
Putting the append lines before the default.php, doesn't make them load either I'm getting things rendered as the default admin theme does them, but its not putting my custom.css or custom.js files anywhere in the source
-
<?php include("/wire/templates-admin/default.php"); $config->styles->append("/site/templates-admin/styles/custom.css"); $config->scripts->append("/site/templates-admin/scripts/custom.js"); I want to make a theme that just adds on to what is already the default admin theme, but for it to add a CSS and JS file to the head, so I can just have my custom stuff work. Is this not possible? So far it isnt working and the files exist.
-
...deleted and made a new post for my reply
-
Great to know a module like this exists Another alternative is to modify the .htaccess file and do a temporary redirect 302 to say a html file at the root called /maintenence.html and then when the site is out of it, edit the .htaccess file to no longer redirect everything to that page and then do a permanent redirect 301 back to the regular homepage / for anyone going to maintenence.html. The visitors won't know any difference Now you might ask, how the admins would login, well if you know your IP address you can allow just that IP to not be redirected Another alternative, is to only redirect everything but whats in your /admin/ directory (whatever you have it named, hopefully something else), granted noone would be able to preview the site
-
I have a field called "number of columns" its an integer (the max is 5, just a note in the description) If it is set to >0 then it shows a repeater (this is working) The repeater then has 5 textfields, and each one needs to only show up if the number of columns requires it so for example, if somone puts in "2" then the repeater shows up (this works as I mentioned) and the repeater should only show 2 of the textfields (this is the part that isnt working). I've went in and set col1_text to be visible if num_of_columns>0 col2_text to be visible if num_of_columns>1 however, processwire isn't saving that setting and so it ignores it. I'm on PW 2.4.0 and I'm trying to build some kind of dynamic table creator (it will be limited to 5 columns max) with a decent UI, so people can easily track the columns, having the columns in tabs or making it to where someone could accidently make 3 colums in one row and 4 in the other isn't good and so this is the solution I've come up with, but its not working for some reason
-
Events Fieldtype & Inputfield (How to make a table Fieldtype/Inputfield)
pers0n replied to ryan's topic in Modules/Plugins
This module would be awesome if it wasn't tied to only events, it might be reworked to build dynamic table data. I have a case where i need to make several dynamic tables of information and I need column titles that get defined once, with each row of columns below with repeatable data and the UI for this "events" fieldtype looks like a starting point. Otherwise I have to mismash a solution where a user might not put in the right amount of rows or columns, because they can't see everything at once You know how tables work: column-title1, column-title2, column-title3 (this row is set once) row1col1-data, row1col2-data, row1col3-data (these rows repeat) row2col1-data, row2col2-data, row2col3-data row3col1-data, row3col2-data, row3col3-data ... Now being able to build that dynamically and dynamically set the # of columns and rows, would be very powerful. -
solved new user role can't publish...must be missing something.
pers0n replied to evan's topic in Getting Started
Anyway to roll out a new update soon? I don't know how to use Git and I've tried to manually edit these but my PW 2.2 doenst have the same lines in wire/modules/PagePermissions.module as I've searched for those lines to edit them. I'm having problems letting users create new pages and I think its related to this. I'm about to launch a site soon and just noticed this today as I had to setup some permissions. Not sure I have time to test the PW with the repeatable field stuff in it yet. Sorry I found out the setting under "add children" wasnt checked on some items.- 19 replies
-
Under Notes column in Fields view, show "required"
pers0n replied to pers0n's topic in Wishlist & Roadmap
Sorry for all the little suggestions I noticed when I mark something as "required" it doesnt say that in the label for the fields when someone goes edits or creates a new page that has fields that are "required" I know I could add this to the label manually, but figured it would just show up -
A minor suggestion, but it might help I noticed it will show "autojoin, global, system", I figured it might be a good idea to show "required" also, just so we know that we set that option
-
Very minor request, but right now image types allow "gif jpg jpeg png" by default, please add jpe to this for future releases. It is rare to come across them, but I've run into this issue before by some program or piece of hardware (camera or scanner) that created .jpe files and yes users could just rename, but I think it would be better to just add it to the core for new installs. For now I'm just adding them in manually Thanks.
-
Sorry if this has been mentioned before. I'd like to be able to set certain fields in a template to be required, meaning they cannot be left blank.
-
You might also get this problem if you are trying to resize images without checking to make sure their are images to begin with.
- 11 replies
-
Cool, I could use these for slideshows for sure. Each repeatable item doesn't link to its own content does it? I know we could add a link to another page, but I guess I didnt understand it 100% and probably wont until I play with it.
-
Sort based on original sort order of a page field
pers0n replied to pers0n's topic in General Support
Thanks that worked -
I'm having a issue, where I need to find all the artwork, but have it sort based on the artistpage, but its doing it based on the alphabetically ordering, not the actual ordering of all my artistpages, which I have dragged into a specific order. $pages->find('template=artwork, sort=artistpage'); I've checked to make sure "sort" is not set under any children for anything.
-
sorry wrong post