Jump to content

cb2004

Members
  • Posts

    603
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by cb2004

  1. 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.
  2. 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.
  3. Is there anyway to do this? I setup a 404 template and gave the permission to the role but no joy. Thanks.
  4. 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)
  5. The latest dev version of Processwire uses CKEditor 4.5.1.
  6. 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?
  7. 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.
  8. 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.
  9. I have a template which has a page selector. In the cache settings for that template, how can I delete the cache for the page selected in the page selector. I am using 2.6.10 and have been through all the selectors. This area seems a bit buggy to me in this version. Cheers all.
  10. That done the business, cheers.
  11. 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?
  12. Hi Diogo. Yes I did try that. No joy, seemed to set the default. The CSS solution is good enough for now. Thanks.
  13. 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.
  14. Spot of output buffering did the trick.
  15. Ok, so its because I wish to show an error before the include call in main. Researching ways to do that now.
  16. 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?
  17. 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.
  18. <?php foreach ($page->nextAll() as $solution) { echo '<a href="{$solution->url}">{$solution->title}</a>'; } ?> Completely untested but whirl that.
  19. 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.
  20. 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.
  21. Thanks kixe, I will give it a try at some point and feedback.
  22. 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.
  23. My field is called form_type and as said has the options 1=Yes, 2=No. Tried so many routes now but no joy.
  24. 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/
  25. 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.
×
×
  • Create New...