Jump to content

peterfoeng

Members
  • Posts

    95
  • Joined

  • Last visited

Posts posted by peterfoeng

  1. I got this mixed up...sorry guys,

    What I am asking here is when we use a page fieldtype in our template we are able to create a new page; can we somehow dynamically choose the location of the parent where the new page will be created? Like the diagram below

    |- Parent 1 (can we dynamically select the parent of the new page to Parent 1 or Parent 2?)

      |- Child 1

      |- Child 2

      |- Child 3

    |- Parent 2 (can we dynamically select the parent of the new page to Parent 1 or Parent 2?)

      |- Child 1

      |- Child 2

      |- Child 3

    I hope this clears out the confusion. Many thanks

  2. Hi everyone,

    I am wondering if we are able to change the parent of the selectable pages dynamically? potentially to the parent of the current page that is being edited? 

    I am trying to search the forum but nothing comes up potentially because of the search breaks down each word. Thank you.

    post-1712-0-34169600-1397101331_thumb.pn

    • Like 1
  3. Hi everyone,

    Thanks for this discussion, I find this pinned thread really helpful :D

    I am setting up a simple shop in Processwire and I am wondering if anyone has idea how to do "Shopify product variant" but in PW style (screenshot from Shopify attach) maybe using combination of repeater / pages fieldtype. I am just wondering :) Thank you

    7pKuT88.png

    O4iQCCW.png

  4. Hi guys,

    I wondering if $useMain is still working. I have my setup like this in the config.php

    $config->prependTemplateFile = 'Init.php';
    
    /**
     * appendTemplateFile: PHP file in /site/templates/ that will be loaded after each page's template file
     *
     * Uncomment and edit to enable.
     *
     */
    $config->appendTemplateFile = 'Default.php';
     

    Then I set the $useMain = false; as suggested but the default is still being output, maybe I am doing something wrong in the Init.php

    Thanks guys

  5. Hi Soma,

    I am wondering if I can attach two different hooks to alter the output (my understanding of hooks is very limited at this stage)? I am trying to achieve something similar to this one http://www.abriefhistoryof.info/, the navigation on the left is the same navigation with the one on footer (bottom of the content) except that the one on the bottom has thumbnail and tags. I am thinking to use the hook to resize the thumbnail on the fly but if I do that, the navigation on the left will also output the thumbnail/tags.

    If there is a way I can identify the source of hook then this can be solved easily but just not sure how to do so. Cheers

  6. Hi Sevarf2,

    Nice website :D I am wondering how you "setup" the pages from the admin.

    One small issue, sometimes the scroll is "jumping" so there are occasion where I am looking at "Cosa" section then I scrolled down it jumps right away into "Perche" section. I am running on safari 7 :)

  7. Actually,

    This is not the issue...there is another smart built into the login process that somehow prevent me to login straight away after logout, am I correct?

    Here's what I did: login then logout then try to login again, the message popup saying: Please wait at least 60 seconds before attempting another login.

    This is not happening on the older version 2.3.0.3 hmmm....* I might be going crazy lol *

  8. Hi Ryan,

    I am facing the same issue again with the latest build 2.3.8 on Safari only, it seems fine on other browsers: Chrome and Firefox.

    I have to put $config->sessionName = session_name(); to solve the issue on Safari. I know nothing about the underlying build is but is there any other implications by setting the session to default php session? Cheers

  9. Hi guys,

    I have some beginner questions that I can't seem to find an answer (maybe I am looking for the wrong search keyword).

    1. When we delete a page, does it delete the corresponding folder asset?
    2. I have a selector in a template like the following:
    $pages->get($page->menu_category->id)->find("template=Menu-Item-PDF, include=all")->menu_item_pdf_exclude;
     

    which should return PageArray (asm multiselect field). How do you I find a page within this returned array? When I try to print the result of the selector above it gives me a string separated by a pipe character e.g. 1205|1206, am I expecting a PageArray here?

    3. Is there a way to clone/move the whole tree? For example I have a page called "Product" and has 100 child pages, can I make a clone of of the tree structure?

    4. Is created date = published date? What happens if I published and unpublished a page, will the date get updated?

    As always I would like to thank you in advanced for the answers to my questions :)

  10. Hi everyone,

    I just want to share the good news, we launched a new website for a cafe in Melbourne, LuxBite. This is my first processwire website after years of experience using joomla and wordpress, this is by far one of the cms I enjoyed working with.

    Please visit the site http://Luxbite.com.au and leave your feedback!

    In short, I would like to thank all the community here - the forum is extremely useful and has a lot of information. This site is built on top of The amazing SimpleNavigationMarkup module by Soma - to be honest I am lazy to do foreach to output everything so utilizing this module is the way to go :) there are couple of outstanding issues and design changes that I need to work on but so far so good :)

    Extras:

    http://www.news.com.au/lifestyle/food/masterchef-cake-challenge-helps-revive-a-taste-for-flavours-of-the-past/story-fneuz8wn-1226666481357

    • Like 12
×
×
  • Create New...