Posts by chopperoon

    Hi there,

    I'd like to use Perch Search to include content from Blog templates using Blocks. I'm aware that Blog custom fields aren't searchable and it also appears that using a postDescHTML field within Blocks means that the content isn't searchable.

    I'm wondering if anyone has any workarounds or suggestions for this? Or any recommendations for alternative search solutions that have worked well with Perch projects?

    Many thanks in advance for any help.

    Thanks ellimondo (and montlewis ) that's interesting to see. I can get a timestamp with that, but it will update on every save of the colletion item, whereas I'm looking for a timestamp of the initial item creation (which won't change on subsequent item saves).

    If I print_r($Item) within the timestamp.class.php I can see an itemCreated string that is exactly what I need but I'm not sure how to get at it...


    I have a client who would like to see the creation date / time of items in a Collection. I could add a date field to the Collection item edit template but we don't want this to be editable by all site editors. Is there a way to achieve this without digging around in the database?

    Any suggestions are much appreciated!


    Just checking in to see if anyone might have any suggestions on this.

    Basically, I'm looking for a way to push an item into a Form Response (stored in Perch admin) after a form has been submitted.

    Any help would be much appreciated.


    I have a Perch form that presents users with a number of questions from which users can indicate an answer by selecting one item from a group of radio buttons. On submission, I'm showing a thank you page that gets the responses using $_POST and calculates a total score (1 point for each correct answer).

    This is all running correctly and the form submission is stored as expected in the Perch Forms admin.

    What I would also like to do is get the total calculated score into the Forms admin also. What would be the best way to achieve this?

    Are there, for example, form event hooks that would allow me (on submission) to create a hidden field set to the value of the total score?

    Or any other approach?

    Many thanks in advance for any pointers or suggestions.

    Just facing the same issue and used a Perch replace attribute to resolve it:

    1. <a href="<perch:if id="result_source" match="eq" value="PerchBlog">/blogSlugHere</perch:if><perch:search id="result_url" replace="//|/" />"><perch:search id="result_title" /></a>

    It's a workaround but it does the job.


    Just to add a little more info to this. I can loop over an array of language options to build a sitemap for multiple blogs using the following:

    And I'm using a similar foreach loop with perch_collection which is returning exactly what I'm looking for.

    But using a foreach loop with perch_pages_navigation and navgroup isn't getting the expected output.

    Any help would be much appreciated!


    I'm building a sitemap for a multilingual site that contains a set of navgroups with slugs en-discover-nav, es-discover-nav and fr-discover-nav. I can get the output I need by calling each navgroup individually e.g.

    1. perch_pages_navigation(array(
    2. 'template' => 'sitemap.html',
    3. 'navgroup' => 'en-discover-nav',
    4. ));

    But I'd like to loop over the language options instead to do this more programmatically. I've tried the following, but I don't get the expected / hoped for output. Instead I get just the very top level of the site navigation, and nothing from the navgroups.

    1. $langs = array('en', 'es', 'fr');
    2. foreach ($langs as $lang) {
    3. perch_pages_navigation(array(
    4. 'template' => 'sitemap.html',
    5. 'nav-group' => $lang . '-discover-nav',
    6. ));}

    I'm using a similar loop with perch_blog_custom and perch_collection and I'm getting the results that I'm looking for.

    Is there a reason why this won't work with perch_pages_navigation? Is there something wrong with my approach?

    Many thanks in advance for any feedback or help.

    Hi there,

    I have a project coming up with a members / login area and I'd like to check if the Members App can provide the functionality that is required.

    Users should be able to sign up and add additional profile information (interests, affiliations etc), and when signed in they should be able to view and search or filter a list of all other members.

    Is it possible to output listings of all members? And possibly search or filter on them?

    I know I'd have no problem displaying and filtering the data from a Collection, so if this isn't possible from within the Members App, would it be possible to push data from Members into a Collection? Would that be a reasonable approach to investigate?

    Many thanks in advance for any advice.


    I have a project for bike rentals and I'd like to use Perch Shop for this.

    A user would typically wish to rent one or more bikes for a number of days, along with a number of possible accessories for the same period.

    In an ideal world I'd like to manage availability of the products within Shop using a calendar of some sort, but as I understand it Shop has no native mechanism to handle availability (e.g. via an availability calendar). Is this correct?

    Leaving aside the question of availability, is there a mechanism within Shop to handle the purchase (rental) of a product for a specific number of days? So could I assign a multiplier (number of days) that is subsequently applied to the cost of every item in the cart (i.e. bikes and accessories)?

    And a further question... is it possible to use Shop with deferred payment? So essentially using Shop to store the user's order request but not process any transaction, with a later possibility of requesting payment from the user later?

    Many thanks in advance for any feedback or suggestions!