-
Posts
217 -
Joined
-
Last visited
Everything posted by Manaus
-
So I created a template A without file, and when creating a new page PW does not suggest template A probably because it has no file. I suppose it is by design. Is it workaroundable? Thank you very much
-
I'd like to set up a simple system for tasks and tickets for my business, I wonder if there is already some kind of solution out there. If not, if there is a plugin that makes easy inserting data and editing it through a form (optionally the same used for creating a task etc). Thank you very much
-
Love this module, but looks like it's not loading js anymore...
- 41 replies
-
- photoswipe
- module
-
(and 1 more)
Tagged with:
-
I cannot grasp the pattern behind the object method/properties: $page->hasChildren() // or $page->hasChildren ? $page->id(); // or $page->id ? $children->count() // or $children->count ? I mean, when to use parentheses, and when not? Is there a principle behind this? Usually after a couple of attempts I manage to get it working, but I'd like to have the idea come natural, without thinking. Thank you very much
-
I set up the config file to load _main.php for each page. $config->appendTemplateFile = '_main.php'; Now, I need to have one page without template loaded, for ajax purposes. Can I put some instruction on my empty.php template to not load _main? Thank you very much
-
I need to display the page https://www.mysite.com/article-2022-1-10/ when the https://www.mysite.com/latest-article/ url is entered. First url should stay hidden, no redirect. Just a content switch, keeping the same url as before. Thank you very much
-
Hello, I don't grasp the use of a selector like $fields->get("name") or $fields->find("selector") I see in the cheatsheet, since when I need to print a custom field from the page I just need to write $page->mycustomfield or similar. How can I use the $fields object? Thanks!
-
Hello, is there a method for generating a link on providing the right selector? Something like <?php echo $pages->get("/mypage/")->link ?> generating <a href="/myurl/">mytitle</a> Instead of writing the whole string <?= "<a href='".$pages->get("/")->url."'>".$pages->get("/")->title."</a>" ?> or <a href="<?= $pages->get('/')->url"><?= $pages->get("/")->title ?></a> Thanks!
-
Perfect explanation, thank you
-
I'm trying to make a navigation menu, for fetching all the subpages of the root I use this selector: $menu_pages = $pages->get("parent=/"); But I when iterating on the array and printing the pages url I get a "Notice: Trying to get property 'url' of non-object" error. The array is fetched through this code: $menu_pages = $pages->get("/")->children I'd like to know why the first selector is failing. Thanks!
-
Tutorial: The file structure in a ProcessWire site
Manaus replied to Spiria's topic in Getting Started
Interesting, the page()->title syntax is not working for me though. -
Hello, I'd like to make sure that some value comes from a specific page. I can send a uuid or something via post, and that value is checked and validated against on the landing page. This value should always change randomly, but always be linked to a passphrase I choose. How could I implement this? Thank you very much
-
Hello, app architecture-related: does it make sense to have pageOne for the form, and pageTwo for checking fields value. If not suitable, redirect to pageOne, back and forth until pageThree for entry creation etc. I've seen many times the validation logic on top of the form page, but I'd prefer to keep the two elements separated. What are your thoughts about this idea? Thank you very much
-
Hello, I'm wondering if it makes sense to use the built-in users functionality for managing -- hopefully -- thousands of users who should not have access to Processwire admin pages? Thats like saying I need users of my app, not my cms' installation. Are there pros-cons of creating my own users management system, from a security point of view? Thank you very much
-
As far as I know there are these two methods: adding it to each templates via the 'Files' tab, or including it on every .php template file. Are there other ways? Thanks
-
Hello, is there any template displaying the template associated to each page? some to inspect on the fly, without entering each and every page in the tree? Thanks
-
After redircts modul install MarkupPwpswpGallery not working anymore
Manaus replied to toni's topic in General Support
Hi Toni, I'm having the same problem, could you be more precise on you solved this? Thank you -
Hello, I made one page in a way that it gathers content from its children, and displays them all as paragraphs of a text. Now, having used one of those crawlers who find errors in websites, I discovered all the children pages are reachable (can't say from where, maybe a sitemap). Loading them with their own Url, the result is a blank page. How can I make them hidden as children, but loaded in the parent page? Thanks
-
Is there a module or hack for editing markdown code, within the text field, having buttons for bolds, syntax highlighting etc? Thanks!
-
For the sake of brevity, I'd like to just duplicate a previous article I published, instead of copying/pasting the content and just change a couple of details. Is it possible? Thanks
-
Hello, I'm trying out TemplateEnginePug, and I get a blank page. I have a empty home.php and a views/home.pug. This one has a very basic paragraph. Still I get a blank page, without any error. Same with TemplateEngineJade. Can't manage to see a byte on screen no matter what. Tested other template languages (twig, processwire, latte), and it works fine. Config debug is `true`. Thanks!
-
As I read from the Cheatsheet, $page->get returns a field, not a page. Is this correct?
-
Hello, I have a parent holding two children, whose name can be foo|bar. Both can have children, but usually I have foo or I have bar. What is the selector I have to use when coding in the parent page? I'm trying $mypages = $page->find('name=foo|bar')->first()->children() But I get a Call to a member function children() on a non-object. Oddly, I managed to get this selector working $mypages = $page->get('name=foo')->chilren() But this is not working when I put a foo|bar OR selector. Thanks
-
Yes this works...!