-
Posts
2,780 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Macrura
-
New site launched today: http://www.katonahartcenter.com/ Thanks to everyone in the forum who answered my posts over the last 8 weeks of developing this site, including adrian, teppo & ryan. modules so far that were essential: After Save Actions Color Picker Admin Custom Pages DataTable Redirects Template Decorator Form Save Reminder Hanna Code Hanna Code Helper Twitter Feed Version Control for Text Fields Form Builder ProCache Forum Threads that helped: http://processwire.com/talk/topic/4849-search-rar-and-tar-result-in-404/ http://processwire.com/talk/topic/4866-time-field/ http://processwire.com/talk/topic/3745-hanna-code/ http://processwire.com/talk/topic/4816-set-field-value-globally-if-null/ http://processwire.com/talk/topic/4602-flexible-downloads-using-pages/ http://processwire.com/talk/topic/1648-ok-to-change-page-name-path-after-save/ http://processwire.com/talk/topic/3987-cmscritic-development-case-study/?p=36867 http://processwire.com/talk/topic/3812-htaccess/?p=37295 using custom admin pages:
-
@kongondo thank you - i did just go ahead and use my normal way of managing menus which is by setting up a menu page tree and then coding the output manually; Welcome Back!
-
thanks again - i was missing the subfield selector concept! this is now working perfectly...
- 7 replies
-
- skyscrapers
- keywords
-
(and 1 more)
Tagged with:
-
this just saved me
-
yeah, it gets to be like your best friend
-
adrian - thanks, that works perfectly!
-
thanks apesia, - much appreciated, i'll probably just do it like you recommend; btw - how would I get a pattern for 12:00 AM? - since we're using the 12 hr format
-
I need to have a time field, for a recurring class start and end; i can't do it with the built in date/time field because i don't need the date... i was wondering if anyone had already come up with a way to implement a time value without date.. something like this? https://drupal.org/project/timefield i previously implemented a time picker on a formbuilder form which allowed you to pick time only; maybe i'll need to build a module to put the time selector in a text field on my form... maybe something like this http://jonthornton.github.io/jquery-timepicker/
-
aah - right, got it - thanks; so the str_replace seems the right way to parse a bunch of words into a pipe separated list, for use in the selector... which brings up another question - i have a keywords field in my template which is a page field (asm select multi) -- how can i compare the keywords entered by a search user with the keywords that are selected/entered in the page? i get MySQL errors so far when trying to work with that keywords field... gonna be tricky i guess, i'm doing a skyscrapers style search box with several dropdown selects and a keywords field
- 7 replies
-
- skyscrapers
- keywords
-
(and 1 more)
Tagged with:
-
for some reason both times i was using ckeditor and i had to either decode entities in the hanna code or change the ck editor config...
-
This one is solved as far as the 404 - i just received a reply from the hosting people: I confirmed that those were blocked by our mod_security rules. still would be good to figure out about sanitizing keywords fields the correct way...
- 7 replies
-
- 1
-
-
- skyscrapers
- keywords
-
(and 1 more)
Tagged with:
-
did some more testing; it's not about the word guitar, it's all words ending in tar, and the word rar when placed in the querystring before another keyword, so that those endings are followed by a + sign. the problem seems to be related to the get string using the + instead of the encoded version of the + which is %2B? if i use %2B in the querystring then it works; also not sure why i have to to the str_replace on my keywords to get my selector to work if($input->get->keywords) { $keywords = $sanitizer->selectorValue($input->get->keywords); $keysearch = str_replace(' ', '|', $keywords); $selector .= "title|body%=$keysearch, "; $summary["keywords"] = $sanitizer->entities($keywords); $input->whitelist('keywords', $keywords); } wouldn't the sanitizer selectorValue do this for me? if i don't so that str_replace, my selector comes out like this and it doesn't work: title|body%=guitar lessons if i do the str_replace, my selector looks like this: title|body%=guitar|lessons
- 7 replies
-
- skyscrapers
- keywords
-
(and 1 more)
Tagged with:
-
thanks teppo, i will try disabling ACF!
-
I have a site with a search form similar to the skyscrapers profile. the strange thing is that if you put in a keyword for 'guitar' and a 2nd keyword (anything), a 404 is triggered (!)... I can't figure out why this is happening, there are no errors in the log and no messages in the console; all other keywords work fine, just the word 'guitar' + another word triggers the 404 not found...
- 7 replies
-
- skyscrapers
- keywords
-
(and 1 more)
Tagged with:
-
joomla really is a dead end.. spent a large part of the last year converting joomla sites to processwire; IMHO i wouldn't start anything new with that, especially with all of the other options out there now. I still have a few sites that are stuck in Joomla 1.5, because of certain components that are being used which are no longer being developed and the functionality that those offer is too complicated/expensive to replicate in processwire. Echoing what Matthew said, the whole template override thing can get incredibly frustrating; as i mentioned in this post: http://processwire.com/talk/topic/3671-ohmspeakercom/?p=35862 , we started that project in Joomla and spent about 1 year (on and off) trying to get it right, and in the end it proved easier to just start over with PW. I recall spending hours writing CSS to get things to go where i wanted them, overriding the joomla classes output for modules.... aargh!
-
This is great, my only issue is that i'm having trouble with CKEditor in general, with it loading up blank, and it's been hard to track down the issue - so switched back to tinyMCE, and am thinking about how i could adapt this module to be used with that, might be cool to have a button on the toolbar with 'HC' or something which would bring up the list of hanna codes EDIT: just read the readme.md... looking forward!
-
@Wanze - good solution thanks!, this might work, i'll try it out; this is searching through about 200 pages max, so it should be ok i think for performance;
-
@sshaw - i don't think that would work because at the point that the if statement is run, it would only apply to the $page which would be the search page or any page with the search form; i tried a lot of ways of doing selectors with an OR; the selector is built up like in the skyscrapers profile, so has various other elements; but the part with the ages i want to return pages where age_min<=$value, age_max>=$value OR age_max='' [ so i can't do a pipe here because the >= won't work to compare to an empty field ] (age selected on the form = $value) I could add a secondary selector all through the search processor and then run 2 $pages->find at the end, one with each of the 2 selectors and then import one into the other, but i was hoping to avoid doing a double query for this, i would probably at that point just run some code to fill in all the empty fields with defaults.. main reason why i'm bringing it up is in case i'm missing some easy way to do this with a single selector string, or anyway to globally replace that field value with a hook, sort of like how in the CMS critic study, Ryan changes the default Page::path function for certain templates
-
Yes! that would be great! - seems the only reliable way to use HC with an editor? otherwise you'd have to adjust the config settings per the above conversation...
-
I have a situation where a template has 2 age range fields: age_min and age_max. If the age_max is blank, i would like to tell the api to treat that as the number 99, so that searches by age will return results; i'm using a search system very similar to the skyscrapers profile; I couldn't come up with a selector that would return results with this situation; for now it works if we enter 99 as the age_max; but looking for a backup for the pages already entered..
-
Hey Teppo - thanks ! it works.
-
does this module work for roles other than superadmin - i can't seem to get it to show for a manager role i setup.
-
@Teppo - thanks again for your help and comments - yeah i should definitely go with the basicEntities and decode in Hanna.. will try asap and report back...
-
thanks Ryan - didn't see your reply but i'll test today or tomorrow with the file you posted
-
yes - i'm using CK editor (and your hanna code helper...thanks for that!!!).; so what would be the fix for this, is there a way to prevent CK editor from encoding automatically? this issue also relates to my posts a few up about php comparison operators like < and >; the reason those hanna codes were not working was from the same editor problem; being that this is really a major issue for Hanna Code, i think this should be addressed, or at least some instructions or disclaimer in the readme file, as i have spent several hours trying to figure out a fix/workaround for this.. so i added this to the config.js: config.entities = false; not sure if this will have any impact on other areas, but it at least fixed this issue.