cb2004
Members-
Posts
603 -
Joined
-
Last visited
-
Days Won
4
Everything posted by cb2004
-
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
cb2004 replied to David Karich's topic in Modules/Plugins
Fantastic module. Huge shame that it removes the space between tags at the moment. <p><strong>Text</strong> <em>(text)</em></p> The above would then be right next to each other. Will check out the parser code when I get a mo. -
CKEditor will not read mystyles.js from site dir, only from wire
cb2004 replied to ndolph's topic in General Support
Think this problem does exist in 2.6.14. I have to call my file in site/modules/InputfieldCKEditor/ anything but mystyles.js, but I have to use the keyword mystyles in my file. -
Is there anyway to do this? I setup a 404 template and gave the permission to the role but no joy. Thanks.
- 1 reply
-
- 1
-
-
Just tried doing this but it doesn't seem to work anymore? Error: Exception: our-history.jpg - not a recognized image (in /home/sites/MYSITE/public_html/wire/core/ImageSizer.php line 260)
-
The latest dev version of Processwire uses CKEditor 4.5.1.
-
story-of-the-month?article=9 is not actually sent off to jumplinks, my guess was because Processwire sent it off to story-of-the-month/ internally?
-
Yes, story-of-the-month does exist in the page tree, which is why I was pretty sure anything after that wont work. No worries, I will just attacked those with .htaccess.
-
Great module, but having a minor issue. story-of-the-month set to redirect to story-of-the-month/ is redirecting fine story-of-the-month?story=9 set to redirect to story-of-the-month/$mystory is redirecting to story-of-the-month/ Could this be because of Processwires normal behaviour to add a trailing slash? Tried removing the first redirect but no joy.
-
Page field: have all pages selectable except admin items
cb2004 replied to cb2004's topic in General Support
That done the business, cheers. -
So I have the requirement to have all pages selectable in a page field. My custom selector is 'template!=admin, sort=title' which works well, however this still displays stuff in the dropdown like 'delete pages', 'edit pages'. How would I stop these appearing?
-
Hi Diogo. Yes I did try that. No joy, seemed to set the default. The CSS solution is good enough for now. Thanks.
-
Pagination in Processwire is so simple, however it would be so much better if you could set numPageLinks to 0 and this would just leave previous and next links. At the moment I have to code this myself.
-
Spot of output buffering did the trick.
-
Ok, so its because I wish to show an error before the include call in main. Researching ways to do that now.
-
Cheers for your reply Yes I have just discovered its not possible with PHP, I kind of knew it was but was curious. My current setup is: basic-page +includes views/page +includes main How would I pass something from views/page to main?
-
I am having some trouble passing variables using a new template technique I am trying. _main.php contains my main template with the line <?php echo $content; ?> I then have a template, lets say basic-page.php which contains: <?php $content = wireRenderFile("views/page"); include("./_main.php"); Within views/page.php I have a variable $JS. Why is that not appearing in my _main.php file? If I put the variable in basic-page.php it appears ok.
-
<?php foreach ($page->nextAll() as $solution) { echo '<a href="{$solution->url}">{$solution->title}</a>'; } ?> Completely untested but whirl that.
-
Is ACF WP's way to make it more like PW?
cb2004 replied to baymarketingco's topic in Getting Started
After using both I would comment that Wordpress (core) combined with Advanced Custom Fields (module) is just like Processwire (core), but Processwire is by far the better system. Come and join us over at Processwire, you wont be sorry. With a super friendly and helpful community, on top of a feature rich content management framework, you can build what you like. There is no need for a calendar module in my eyes, you can create a calendar and hook it up with Processwire pages with ease. Ecommerce there are some modules floating about, but this completely depends on what you need. If a full ecommerce system is required it is best left to that type of system, simple systems can be done with Padloper. *I have only been using Processwire for around a month full time on one site, and I wish I found it years ago. -
How do you update field type 'Options' using the API?
cb2004 replied to cb2004's topic in API & Templates
Will look into this when I get a moment. Sure was acting like a bug to me when I tried a load of different ways so I will report back when i can. -
How do you update field type 'Options' using the API?
cb2004 replied to cb2004's topic in API & Templates
Thanks kixe, I will give it a try at some point and feedback. -
How do you update field type 'Options' using the API?
cb2004 replied to cb2004's topic in API & Templates
Ok, I am having to store the results in PW as a text input for now as all the methods I can think of in the short time of using PW have not worked. Hopefully Ryan will expand on the documentation a little more in the future or pop in here at some point. Still cracking on with PW and loving it. -
How do you update field type 'Options' using the API?
cb2004 replied to cb2004's topic in API & Templates
My field is called form_type and as said has the options 1=Yes, 2=No. Tried so many routes now but no joy. -
How do you update field type 'Options' using the API?
cb2004 replied to cb2004's topic in API & Templates
Well I am adding a page like this: $page = new Page(); $page->addStatus(Page::statusHidden); $page->name = time(); $page->parent = $pages->get("1015"); $page->template = 'contact'; $page->title = $form[contact_name]; $page->form_date = time(); $page->form_text_1 = $form[business_name]; $page->form_textarea_1 = $form[address]; $page->form_text_2 = $form[tel]; $page->form_email = $form[email]; $page->form_url = $form[website]; $page->save(); Now I would also like to set the radio option selected from my form into PW, but I am not sure what format it is to set the options. https://processwire.com/api/modules/select-options-fieldtype/ -
I have created a field using the relatively new field type 'Options'. I created my options which are Yes and No. These were then assigned: 1=Yes 2=No It doesn't appear to be well documented yet, but how would I update this field type using the api? I have tried numerous routes with no joy yet. I am going to keep trying and post here if I crack it.