-
Posts
651 -
Joined
-
Last visited
-
Days Won
6
Everything posted by rick
-
Need to move child page and descendants to root
rick replied to timothy.m.wilson's topic in General Support
Hi timothy, Since you are only using a blog, you can set the 'Home' Page Title to be whatever you want (eg, Blog), and create your blog posts beneath. So whatever template you currently have defined for your current blog page would be the one to set for the new 'Home' (Blog) Page. You can then promote your blog posts up a level where they reside beneath Blog. Another option might be url segments. -
Need to move child page and descendants to root
rick replied to timothy.m.wilson's topic in General Support
I could be wrong, but I think Home is the parent of all pages. You can't have another page at that level. What is it you want to accomplish? Maybe there is a means to do so with your current structure. And welcome to the forum! -
@adrian, I have a suggestion. Is there any way to make the results pane of the console scrollable? When code executed in the console produces a long output, the results pane expands vertically and the top (Close) heading is forced above the browser window. There is no way to move the window back down other than clearing the results which shrinks the window back to original size.
-
Do you have Tracy Debugger installed? I believe you can test the rss feed in the console. You would use the Example 1 code from Ryan's post, minus the php tag, like so: $rss = $modules->get("MarkupLoadRSS"); $rss->load("http://www.di.net/articles/rss/"); foreach($rss as $item) { echo "<p>"; echo "<a href='{$item->url}'>{$item->title}</a> "; echo $item->date . "<br /> "; echo $item->description; echo "</p>"; } This example works on my 3.0.61 install, so it should work for you as well. What do you mean you purchased a template with all files (What files?) and the pages (What pages?) were already created? Did you purchase a site profile?
-
Warning about Server Locale after update from 3.0.52 > 3.0.53 - Help!
rick replied to EyeDentify's topic in General Support
@Pino I am not sure about adding this through $languages or the translation files as I am not using multi languages. I had this error initially upon upgrading and the problem went away after I added the locale setting to the config file. Does you server fall within the PHP notice? I don't know if this has anything to do with it though.- 40 replies
-
- serverlocale
- 3.0.52
-
(and 1 more)
Tagged with:
-
Warning about Server Locale after update from 3.0.52 > 3.0.53 - Help!
rick replied to EyeDentify's topic in General Support
Placing setlocale(LC_ALL, "en_US.UTF-8") in /site/config.php solved the issue for me, but I am not using the multi language capability. setlocale- 40 replies
-
- 1
-
-
- serverlocale
- 3.0.52
-
(and 1 more)
Tagged with:
-
I like the idea of a periodic sale of various products. Also, Have a quarterly or semi-annual contest open to all community non-staff members to develop the best ProcessWire widget. The winner gets the designated product license, second place gets the "All I Got Was This ProcessWire T-shirt". Seriously. Having the ProcessWire logo on items would be great. I'd buy the coffee mug now.
-
Hi @Publisher-in-Chief, Welcome to the forums! The link @abdus posted contains an example usage which displays the contents of an rss feed. Copy that example into your template file. Replace the example URL with the one you want to use. View the page. Additional information on usage can be found under the More Details section of that post. Let us know if you need help with what you want to accomplish.
-
Which module methods are called from front-end rendered forms
rick replied to rick's topic in General Support
You are correct that process modules should be restricted to back-end use. It was my mistake for using that example and applying it to front-end use. I am not writing any process modules, though. I believe I have enough to continue converting my olden-days code to use in ProcessWire. I understand your URL segment example, too. I'm sure I will make use of it soon. Thank you for your help. -
Which module methods are called from front-end rendered forms
rick replied to rick's topic in General Support
Hi @abdus, @horst Thanks for your replies. abdus, If I understand you correctly, ProcessWire has it's own set of "magic functions" relating to module classes similar to how it automatically handles template files, such as <code>init.php</code> and <code>ready.php</code>, where init() and ready() are automatically executed within a module if present. In Ryan's module, ImportPagesCSV, it appears that module functions are automatically executed based on URL segments (which are not defined in a template): Maybe I am making things far more complicated than they really are, which is highly likely, but this is the basis of my confusion. Information like what you both have posted needs to be documented somewhere so it's easy to find. Thank you both for your replies. -
Which module methods are called from front-end rendered forms
rick posted a topic in General Support
Hello all, I am confused about how a specific module method is invoked by a form rendered on the front-end and then submitted. My confusion, or rather ignorance, stems from not finding any references describing how I (or ProcessWire) determine whether an action is adding or editing a set of data. I've gotten myself surrounded by so many trees at the moment from reading blog articles and forum entries, and dissecting existing modules. I've seen <code>___execute</code> method based on url, <code>___action</code> used with suffixed name, and others with no discernible means. I can create and install a skeletal module, create and edit the module config, retrieve data from page(s), and render a form on the front-end, all without issues. But so far I am unable to get a submitted form to invoke a particular class method for saving a new data set, editing an existing data set, etc. What is the proper, ProcessWire efficient, way to have a submitted front-end form call the appropriate module method? -
At first glance, it appears to be a typo... ...already added a field called recipe_views_count. But your counter references $page->recipe_views_counter += 1. And your pages->find references sort=-recipe_views_count
-
Yes, that is right. I should not have lumped atom into the same group as phpstorm. I withdraw the post
-
I am not sure how many established ProcessWire users use the Atom IDE, but since it is free, works on linux, and has the features I like, I decided to install it. It is a very nice and comfortable interface. It would be nice to have the advanced.js provider reference the ProcessWire API directly so that users are always up to date. There are a vast number of similar IDEs, and I don't suggest that ProcessWire 'endorse' any particular one. However, I do think that having such plugins available for a few can only add to the attraction of ProcessWire.
-
@adrian, Updated and workin' great! Thanks for your efforts! ps. We need a Buy-A-Beer button in this forum!
-
Hi @adrian Here is the dump. Hope the format is what you wanted. array(4) { ["findOne"]=> bool(true) ["findAll"]=> bool(true) ["getTotal"]=> bool(false) ["caller"]=> string(9) "pages.get" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(4) { ["findOne"]=> bool(true) ["findAll"]=> bool(true) ["getTotal"]=> bool(false) ["caller"]=> string(9) "pages.get" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(4) { ["findOne"]=> bool(true) ["findAll"]=> bool(true) ["getTotal"]=> bool(false) ["caller"]=> string(9) "pages.get" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(4) { ["findOne"]=> bool(true) ["findAll"]=> bool(true) ["getTotal"]=> bool(false) ["caller"]=> string(9) "pages.get" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(4) { ["findOne"]=> bool(true) ["findAll"]=> bool(true) ["getTotal"]=> bool(false) ["caller"]=> string(9) "pages.get" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(4) { ["findOne"]=> bool(true) ["findAll"]=> bool(true) ["getTotal"]=> bool(false) ["caller"]=> string(9) "pages.get" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(1) { ["caller"]=> string(13) "page.children" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(1) { ["caller"]=> string(13) "page.children" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(2) { ["caller"]=> string(10) "page.child" ["getTotal"]=> bool(false) } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(1) { ["caller"]=> string(13) "page.children" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(1) { ["caller"]=> string(13) "page.children" } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334 array(2) { ["findAll"]=> bool(true) ["loadOptions"]=> array(3) { ["pageClass"]=> string(10) "Permission" ["joinSortfield"]=> bool(false) ["joinFields"]=> array(0) { } } } NULL in .../modules/TracyDebugger/panels/DebugModePanel.php:334
-
Hi @adrian, I have a fresh PW install 3.0.59 (blank profile), running on LAMP (apache 2.4+, php 7.0) and installed Tracy Debugger 4.3.1. I get the following error: ErrorException: Undefined index: caller in /var/www/pwtest/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/DebugModePanel.php:335 Stack trace: #0 /var/www/pwtest/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/DebugModePanel.php(335): Tracy\Bar->Tracy\{closure}(8, 'Undefined index...', '/var/www/pwtest...', 335, Array) #1 /var/www/pwtest/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(153): DebugModePanel->getPanel() #2 /var/www/pwtest/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(108): Tracy\Bar->renderPanels() #3 /var/www/pwtest/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Debugger.php(266): Tracy\Bar->render() #4 [internal function]: Tracy\Debugger::shutdownHandler() #5 {main} I've searched this topic but didn't see a similar incident. However, I have logged out/in, and cleared all cache entries. This error is still present. This error is not preventing me from continuing development though.
-
Hi tom0360, Welcome to the forums! ProcessWire does not care what you use for your front-end. I have been using Bootstrap for a while. It's setup is just as they explain in their docs. If you are using 3.3.7 then extract the js, fonts, and css folders to your /site/templates folder. The same with 4.0.0 alpha, except they don't use the fonts folder any longer. Again, welcome. Feel free to ask any questions. There are a lot of good people here that will help.
-
Maybe this custom page type article can help.
-
You wouldn't necessarily create another field just to provide a link. You can use jquery to locate the title field(s) and enclose the content within the desired anchor tag. But isn't that what the link field is for?
-
I can't give specific details as I do not use this module. In theory, however: You can load page content into a bootstrap (just an example) dialog box via an ajax request based on the user clicking the markerTitleField and then display that dialog box. OR Depending on the number of clickable markerTitleFields, you could pre-load hidden containers with the appropriate content and display the corresponding dialog box. Maybe I'm not understanding the issue, which is likely.
-
A dialog box, whether sliding or animated fade, doesn't have anything to do with ProcessWire. You can use Uikit, Bootstrap, or any other css framework to present that information.
-
Sub-links and Images is not functioning in proper way
rick replied to Ibrahim El Haddad's topic in General Support
Why are you posting multiple times? -
There are few, if any, actual blogs that I read any more. Actually, at the moment I cannot think of one. I do think only the die-hard bloggers actually pursue maintaining their blogs, and use various social mediums as a tool for promotion. Many people look for the simplest, easiest, quickest means of self-promotion and immediate feedback that avenues such as facebook provide. Maintaining a blog requires much more effort. So yes, I would agree with you that the onslaught of the social platform fads have moved the blog to the back of the line.
-
callback functions in "lazy cron" hook
rick replied to Mathroth's topic in Module/Plugin Development
Your function takes an argument but your hook is not passing one?