texts: CSV stream containing item name and inventory from client- wishes to display it on product pages. How?

texts:
Client has insisted that instead of giving a set quantity for the various items on the Expression Engine\Expresso ecommerce store, they would maintain it internally on their mainframe and divulge it to the webfront via CSV streams.

Here is an example of one such permutation of the stream:

BAZIK,279,BLACK,149,BREEZY,1192,BUFF,644,BUTTERCREA,931,CLEMENTINE,562,CREAM,1033,HONEYDEW,992,JAVA,21,METAL,845,PISTACHIO,954,QUARRY,1123,RED,1122,STEEL,204,WHITE,234

^ This is for one product type, not all of them. There are multiple streams which compose all of the products listed on the site itself.

So, on the webfront if the page was on this stream's category and the product specified was "Bazik" the number next to the item would be 279.

I'm at a loss on how to approach this. They won't budge on the issue, so how do I get this to work?

@ Foamcow

I don't know how to do that and, frankly, I don't have the time to figure it out unfortunately.
This makes good sense.
This is already being handled, however the result would not be in real time (which further muddies the entire point of this).


texts: Assets in a Matrix can't select files from a subfolder

texts:
EDIT: Nevermind - case of outdated indexes. Could really use a warning when this happens though...

EE 2.8.1, Assets 2.3.1, Matrix 2.5.10

I've got a Matrix field with an Assets column, which is restricted to a specific Upload Destination. Said destination has subfolders. When I select a file from the Upload Destination folder itself, things work as expected. However, when I select a file from one of the subfolders, nothing appears to register.


texts: Is it possible to resize a ce-image with max values and fill the gaps with a background color?

texts:
I am trying to resize images (logos) to a max of 150px width and 150px height. Since these images differ greatly in original width and height I would like to center the generated image and then fill the gaps with a background color.

What I would like to end up with is a 150px x 150px image every time with logo centered... is this possible with CE Image?

Here is my current tag.

{exp:ce_img:pair src="{logo}" max_height="150" max_width="150" crop="no"}
    <img class="media-object" src="{made}" height="{height}" width="{width}" alt="{title}" />
{/exp:ce_img:pair}


texts: Search module not working when using a template route to display the results page

texts:
I am having a bit of trouble getting a search results page to display if the template used for results is being supplied via a template route.

My template faq-search is accessed via /resources/faq/search/results

When I try to search I get an invalid action warning.

{exp:search:simple_form result_page="resources/faq/search/result" no_result_page="resources/faq/search/no-result"}

If I use the following without a template route it works fine.

{exp:search:simple_form result_page="resources/faq-search" no_result_page="resources/faq/search/no-result"}

Is this an intended feature or a bug?


texts: I am moving my expression engine site and database to a new server. Everything seems to be directed correctly but when I access admin.php I get a blank page. Any thoughts?


texts: How to bulk import multi-language data to channel entries?

texts: I'm trying to import a data base that has multi-language entries to EE and thought of using DataGrab. I'm using Publisher plugin to relate multi-language entries. Is there a way that I can import the DB without losing the relation between entries and their translations?


texts: Datepicker with enabled dates form calender

texts:
I'm trying to create a jquery datepicker with the available dates form the module Calender from solspace.

The problem is when i add the data manualy to the variable it works, but when i thy to use the dates form calendar i get a empty datepicker.

I hope someone can help me with this.

Here is my javascript code.

var datums = '{exp:calendar:cal  event_limit="{embed:event_limit}" date_range_start="today" show_weeks="12" pad_short_weeks="n" dynamic="off"}"{event_start_date format="%d-%n-%Y"}",{/exp:calendar:cal}';
var datums2 = [datums.substring(0, datums.length -1)];
var unavailableDates = datums2;

function unavailable(date) {
    dmy = date.getDate() + "-" + (date.getMonth() + 1) + "-" + date.getFullYear();
    if ($.inArray(dmy, unavailableDates) == -1) {
        return [false, "", "Unavailable"];
    } else {
        return [true, ""];
    }
}

$(function() {
    $("#book-date").datepicker({
        dateFormat: 'dd MM yy',
        beforeShowDay: unavailable,
        minDate: 0,
        maxDate: "+6M"
    });
});


texts: Is there anyway to see what data is being sent to and returned from UPS?  It appears that the rates I'm getting back are not the rates I'm expecting and would like to see exactly what data UPS is rating for.


texts:
I currently working on a small project which utilises Google Maps by Objective HTML. The scenario is a page with a search form. The search form contains a postcode field, a distance field, and a category dropdown select.

It seems 2/3 of the search work OK. If I was to type a postcode and set a distance from that postcode then the idea is that the user is then taken to a results page displaying a map with the necessary points marked on it.

Thats all fine, the problem is categories. The dropdown list on the search form is populated correctly, but I'm struggling to grasp how to pass the category through to the results page, filtering your results according the category you've selected.

I maybe totally wrong but it was my understanding that categories are very reliant on the URL being used. That doesn't seem to come into the equation with this as you'll see below. The return= parameter needs to direct you to the results template, with no mention of category. My markup is below

{exp:gmap:search
    channel="property_sales"
latitude_field="fs_latitude"
longitude_field="fs_longitude"
geocode_field="location"
distance_field="distance_max"
cache_post="false"
return="/property/results/"}

Enter Postcode

<input name="location" id="location" class="form-control" value="{if post:location}{post:location}{/if}" type="text">
{if error:location}
{error:location}
{/if}

Distance from Postcode

<select name="distance_max" class="form-control">
    <option value="" &#123;if="" !distance_max="" ||="" distance_max="=" ""}selected="selected" &#123;="" if}="">National</option>
    <option value="5" &#123;if="" distance_max="=" 5}selected="selected" &#123;="" if}="">5 miles</option>
    <option value="10" &#123;if="" distance_max="=" 10}selected="selected" &#123;="" if}="">10 miles</option>
    <option value="20" &#123;if="" distance_max="=" 20}selected="selected" &#123;="" if}="">20 miles</option>
    <option value="50" &#123;if="" distance_max="=" 50}selected="selected" &#123;="" if}="">50 miles</option>
    <option value="100" &#123;if="" distance_max="=" 100}selected="selected" &#123;="" if}="">100 miles</option>
</select>

Category of Property
    <select class="form-control">

        {categories}<option>{category_name} - {category_url_title}</option>{/categories}
    </select>

<button class="btn btn-primary btn form-control" type="submit">Search</button>

{/exp:gmap:search}

That is the search form and this is the result template markup, where I assume the category information has to come into it

{exp:gmap:init id="map" class="gmap" style="width:100%;height:400px"}

{exp:gmap:results
    order_by="distance"
    sort="asc"
    parse="inward"}

    {if has_searched}

    {results}{total_results}

{title} - {distance}

    {/results}

        {results}

         {exp:gmap:marker
             id="map"
             latitude="{fs_latitude}"
             longitude="{fs_longitude}"}

            {/results}

    {if:else}

        {exp:channel:entries
            channel="property_sales"
            dynamic="no"
            disable="member_data|pagination"
            parse="inward"}

        {location_gmap id="map"}

        {/exp:channel:entries}

    {/if}

{if no_results}

No results found

{exp:channel:entries
        channel="locations"
        dynamic="no"
        disable="member_data|pagination"
        parse="inward"}

    {location_gmap id="map"}

{/exp:channel:entries}

    {/if}

{/exp:gmap:results}

I apologise for the long winded question, but has anyone managed to get a category filter working on this module

Thanks a lot, any advice is much appreciated


texts: Expresso Store for food ordering/delivery service?

texts: Has anyone successfully used Expresso Store for food ordering/delivery? The biggest complication I can foresee is with choosing realistic time slots which the restaurant can easily control during their busy times.


texts: is there a hook when a member resets it's password?

texts:
is there a hook when a member uses the forget password feature?

Looking at the hooks documentation, I don't see any hook in there that might do this.


texts:
I'm having trouble getting 404 pages to work. In Global Template Preferences I've set strict urls to yes (tried No as well) and have selected my 404 template.

My code on a single entry page is as follows.

{exp:channel:entries channel="services" disable="member_data|pagination|category_fields" limit="1" require_entry="yes"}

{if no_results}
    {redirect="404"}
{/if}

more code here
{/exp:channel:entries}

As far as I can tell this should go to a 404 page if I change the url to a non-existing url_title in the final segment. What happens instead is the page displays including header, footer and sidebar, but the content is empty.

any ideas?

--UPDATE--
full template code is in a pastie here.


texts: Trying to use Playa to assign "categories" instead of using categories, can't wrap my head around how to set it up in templates

texts:
First I want to say I initially setup the Products section of this site using categories and it works great. BUT, I need more custom fields added to categories which I don't think is possible so I'm exploring alternate methods.

I read about creating a "Categories" channel and adding a Playa field to my "Products" channel to assign a "category". I setup the "Categories" channel and assigned a "category" to each product using Playa.

It's important to have the url structures remain the same as it is in the image below. "Product Cat1, Product Cat2, etc." are the categories. The items listed below those, "Apple, Banana, etc.", are entries with the category assigned to them. I need to be able to dynamically create the sidenav as shown in the pic below. This was relatively simple using the categories tag, but I'm having problems figuring out the template code using Playa.

When a product is clicked, a "product detail" page is shown. Again, I need the URL structure to remain the same as before. If anyone has any comments on the template code for the sidenav and main content area it would be greatly appreciated!


texts: How to improve performance of CI_Encrypt->_add_cipher_noise?

texts:
I've been trying to track down some performance issues with an ExpressionEngine site, specifically around pages using CartThrob. I've been using XDebug and Webgrind, and noticed that CI_Encrypt->encode was causing the bulk of my performance issues.

Much of the problem was resolved by enabling the PHP mcrypt module, although CI_Encrypt still seems to be the major bottleneck in my application.

Now, the problem seems to be with CI_Encrypt->_add_cypher_noise, which is taking almost 1.5 seconds to run just 40 times, accounting for over half of my page load time.

Is there any way to improve the performance of this function?


texts: ExpressionEngine + Slider, how do I get it to display correctly?

texts:
I suppose I could consider my very experienced with ExpressionEngine.. But I've come across a stumper here and I know the answer is probably obvious.

Client has handed me a design to port over to expression engine and implement all the bells and whistles. They have included their slider of choice in the design.

Lorem ipsum

Epsum factorial
 non deposit

              read more

^I'm sure you've seen the problem already. I cannot simply 'wrap' this section inside a channel tag, it would break the styling. Nor can I simply use two channel tags (unless I'm missing something) to populate both areas and keep them in sync with each other for each slide.

Here was my initial (lazy) attempt:

         {exp:channel:entries channel="home_slider" limit="4" orderby="date" sort="desc" dynamic="no"}

{title}

{home_slider_text}

           {if home_slider_link !==''}

              read more

           {/if}

          {/exp:channel:entries}

        {exp:channel:entries channel="home_slider" limit="4" orderby="date" sort="desc" dynamic="no"}

        {/exp:channel:entries}

I'm thinking the answer lies in being clever with an {if count} approach, but I'm scratching my head on this.

Any words of advice?

Note: To make this even more frustrating, a long time ago I dealt with a similar problem and fixed it.. But I don't have access (nor even remember the url) to that site.

Edit: Upon further investigation.. It seems that this slider they chose isn't actually transitioning\hiding the slide text- only the slide images themselves. Curious.

Seems the issue isn't with me per se but with their code.


texts:
I'm looking to upgrade our Cartthrob 2.2.9 version to bring in the changes required for V3.00 Sagepay. Does anyone have any advice on what i'd need to upgrade for this version? I can see in the Sagepay notes that there are changes to the encryption method which i have successfully implemented on a Cakephp store but need to what requires modification on Cartthrob?
Thanks


texts: Is there a way to use $_GET variables on an EE site to pass Google Analytics the referrer info?

texts:
I manage a site for a local live-performance theatre that uses ExpressionEngine to manage their content and TicketMaster for it's online ticket sales.

When a user buys a ticket through TM, they send out a receipt with links back to the theatre's website. Unfortunately, the links are appended with a url query string—specifically ?camefrom=ticketmaster.

Unfortunately, this url causes a 404 Not Found error because EE is trying to parse the get variable as a slug, controller, or page. There is no flexibility on TM's part to create different URLs because it's all automated.

The information I've found thus far concludes that EE doesn't like URL variables at all. Is there any way to circumvent the URL rewrite engine while stile passing this variable to the server (because they'd also like to keep track of the referrals from TicketMaster via an email).

Adding a second parameter (ie, ?camefrom=tm&foo=bar) works, but isn't an option because TM will not change the URL they place in the emails.

Does anyone have an idea?


texts: How to empty/clear cart when adding a new product?

texts:
Is there any way to empty or clear the cart when a user adds a new product?

I'm aware of the clear_cart tag but this doesn't work when using the browser's back button, allowing users to add multiple products (or multiple types of products) to the cart.

I think this is happening because the page does not fully reload when using the back button so the clear_cart tag is not fired.

Expresso Store has a empty_cart parameter for it's product tag that empties the cart when a product is added as opposed to when the page loads.

I was wondering if there was anything similar for Cartthrob? Or a workaround that achieves the same thing?

I've thought about forcing the page to reload when using the back button but I'd prefer to avoid this if possible.


texts: Make a member have to "re-agree" to a site's TOS when their member group changes

texts:
We have a client that has their users agree to a particular terms-of-service agreement when they register for an account.

This is not the standard EE "terms of service" as it's different for the member depending on what member group their are part of.

We had been doing this with a conditional statement and Solspace's User module's register functionality.

Now the client needs to be able to have the members "re-agree" to a different TOS if their member group changes when a site admin changes it in the control panel.

Basically...

"If Jason's member group is not the same as the last time he logged in and is one of these specific member groups, make him have to agree to this new TOS via a modal window (."

Anyone familiar with how to accomplish this or an add-on that can manage that? It doesn't have to be a modal window, but figured that would get the user's attention.


texts: Issue with grid field and loading images, last image loaded keeps replacing all others

texts:
I'm having an issue with loading images to the grid field from the file manager: I'll add a first row and image, and then add a 2nd row, and add a second image, the first image get's replaced by the 2nd image.  Then I'll add a 3rd row, and a 3rd image, and that image replaces all of the others.  Basically, the last image loaded replaces all of the others.  Weird.

I have a screencast showing this here: screencast showing file/grid field issue

Note/Edit: I tested with uploading new images to the file manager, and it does not occur when I do this, so it's just something with selecting images from the file manager? Screencast: showing the issue doesn't occur with new files

I've tried it with disabling extensions, same thing happens.

I don't have any errors in the console.

Any ideas what could be causing this?

ExpressionEngine v3.4.1


texts: Combine Pages module and the default URL behavior

texts:
An existing site uses the Pages module. There are already way too much pages and I have to add new pages now with content from a new channel.

Can I use for the new page/s the EE templategroup/template URLs and not using the Pages module?

Can both ways, Pages and the default URL behavior, be combined in one install?


texts: How do I control the amount of links in the homepage feature?

texts:
My website currently has 5 links that rotate in a slide gallery on the homepage. I can edit these links by editing the Homepage feature but I don't know how to reduce their number from 5 to 4 links being displayed. Does anyone know how to adjust this?

Thank you


texts: EE 2.7.2 Upgrade - Channel Form File issue

texts:
Update to 2.7.2 and keep getting an error in a Channel Form with a file field. The initial error is a javascript error. If I try to click on the "close" I am sent to the top of the page with a hash tag (#) appended to the URL.

In the channel form the field is : {field:artist_pic} where artist_pic is a file field.

If I remove the safecracker_file folder from the third_party folder, I get a page breaking error such as:

Error

Unable to load requested field type file:  ft.safecracker_file.php.
Confirm the fieldtype file is located in the expressionengine/third_party/ directory

What do I need to do in order to correct this?

* EDIT *

The update was from v2.5.5 when performed. The field is a file field and not a saefcracker field.

As for the js error received it is an unknow error W3C is an unknown... basically, not seeing the 'file' it is looking for.

* EDIT II *

Ok, so after speaking with my partner on this, it looks as though the previous file was never updated to a standard file field. He is making that change now. SOOOOOOO, to keep with the spirit of awarding answers on EESE, who knows if changing field types from saefcracker file fields to a standard file field keeps the data already associated to all of the entries?


texts:
So I have a blog where I am paginating my entries to 6 per page. Generally the standard pagination built into EE is fine, but for this I only ever want 4 page numbers to show in the pagination bar like so

Prev 1 2 3 4 Next or Prev 7 8 9 10 Next

I don't think that the page_padding parameter will work in this way - do you know if it's possible to have EE's pagination work in this way or will I have to get an add on like AB Pagination?

Thanks in advance!


texts:
I have a simple super search form and I want the results to only search in 2 custom fields, I don't want it to search titles or any of the other custom fields that I have in the channel. My code below shows you that in the results I have, per the poor documentation, used the search_in parameter but that is not limiting a search to those fields. When doing a search with a word from a title field, instead of seeing the "no results", it displays a result. What am I missing?

<form action="{path='/sync/ss_results'}" method="post" id="sc_search">
                <input type="hidden" name="csrf_token" value="{csrf_token}" />
                <input type="text" name="tags-like" id="keywords" placeholder="Search" size="18" maxlength="100" />
                <input type="submit" id="search" value="search" />
            </form>

{exp:super_search:results channel="videos|series_head" search_in="bible_book_chapter|sh_scripture" redirect_post="no" exclude_entry_ids="29|30|31|33|34|35"}
{if super_search_no_results}Sorry we weren't able to find any videos listed under that passage.{/if}

{title}

{/exp:super_search:results}


texts: Assets2: exp_assets_folders table gives error on migration

texts:
just upgraded to Assets 2 and must say the visuals are stunning.

When migrating from my local machine to my online development enviroment i got the following SQL error when uploading the database.

SQL-query: INSERT INTO  `exp_assets_folders` (  `folder_id` ,  `source_type` ,  >`folder_name` ,  `full_path` ,  `parent_id` ,  `source_id` ,  `filedir_id` ) VALUES ( "2",  "ee",  "Bestanden",  "",  "",  "",  "2" );
MySQL retourneerde:
#1062 - Duplicate entry 'ee-0-' for key 'unq_source_type__source_id__full_path'

this error is caused by the following rules in the import file

INSERT INTO `exp_assets_folders` (`folder_id`, `source_type`, `folder_name`, `full_path`, `parent_id`, `source_id`, `filedir_id`) VALUES ("1", "ee", "Afbeeldingen", "", "", "", "1") ;
INSERT INTO `exp_assets_folders` (`folder_id`, `source_type`, `folder_name`, `full_path`, `parent_id`, `source_id`, `filedir_id`) VALUES ("2", "ee", "Bestanden", "", "", "", "2") ;

I think the problems caused by the fact that i'm using the config-bootstrap method to control all path and url information for my installations.

Do you have a way to solve this issue? And is it still possible to control the path information via de config-bootstrap?


texts: Any ideas on how to link members to entries?

texts:
I'm planning a new site that will have a list of entries and a database of members (nothing unusual there I hear you say).

What I'm trying to work out is how to allow a member to express interest in one or more entries?

The scenario would be something like this...

The member would log in
They would then browse or search entries
When they find one they like the could click a button to express interest in that entries
They could then do the same for other entries if they choose
Another member could then log in, browse entries and see which other members are interested in that entry

All thoughts will be gratefully received!

Any ideas?


texts: Freeform user notifications not sending, but admin notifications are fine

texts:
I have a pretty basic Freeform contact form set up (fields are: first_name, last_name, email, user_message). The form is set so that, when submitted, the admin receives an email to alert him/her to the fact that there is a new message, the user receives an email as confirmation of their submission, and the user is redirected to the thank you page (which recaps their message for them). The redirect and the admin notification are both working perfectly, but for some reason the User Notification is not.

I have a user notification template set up, I have user notification enabled in the CP, and the 'email' field is set as the delivery address. These settings are made in the CP but I also tried adding them into the form explicitly as parameters -- still no luck.

I should add that I do have a sender address correctly set in EE's email preferences (that tripped me up on a previous occasion when I was unable to receive admin notifications -- they were getting stopped as suspicious and spammy because the sender's address was blank). Also, the user emails are not showing up in the spam traps (either at server level or locally)

Anybody have any ideas why admin notification emails would go out/be received whilst user notifications won't? And where can I check, eg. logs, to see if the email is actually being transmitted by EE (in which case it will presumably be a mail server problem)?

Last thing: I'm testing this on MAMP.

Thanks.


texts: Trying to set up dev / staging environment for EE on Nexcess hosting

texts:
So, as a precursor - I'm new to using Git and the FocusLab Master Config and having a few issues getting set up. I'm using a Nexcess shared EEP-100 account.

If I follow everyone's advice on developing with Git, my ideal setup should have a staging or development branch / site alongside the live site so I can push and test changes first before merging and pushing to production and understand that all environments must have the same structure in order to work correctly and herein is my problem…

If I create a secondary domain on the Nexcess account it gets its own folder with web root (html) etc contained and everything works as advertised but this requires a full domain not a subdomain.

When I create a sub-domain the target folder is added to the web root of the primary domain so my set up is not going to be consistent with the local and production environments and i'd be installing everything at web root - in which instance all the base paths etc will be wrong.

How does everyone deal with this when setting up Git / EE?


texts: EE3 Email for member account activation: how to modify

texts:
Trying to modify text on the member account activation email on EE3. But it does not accept modification.

I modify /system/ee/legacy/language/english/email_data.php. Whatever I change there I always get the same old/standard text like:

  "Thank you for your new member registration."

But that sentence was changed in email_data.php. I use Smart Member Pro. Does that on interfere.

I am confused. What should I do different?


texts: How can I toggle up/down votes on ratings?

texts:
I'm using the Solspace Rating module and I'd like to be able to allow the user to toggle their vote on ratings.

If a user votes up but later wants to "unvote" or change their vote how can I accomplish this?  It seems that I can allow duplicate votes, but this does not solve the problem.


texts: Exp-resso Store Shipping Select auto refresh

texts:
Can't seem to find an answer in the documentation, not sure a feature is even needed for this (might just need JS). Can't seem to figure it out though.

I'm using {field:shipping_method} to generate a select dropdown for shipping options. I'd like the total to update after a new shipping method is selected. How can I do this?

Right now I'm using:

$('#shipping_method').change(function(){
        location.reload();
 });

To reload the page but it's not retaining the information. It resets to default shipping option.


texts: Display Category Image/Description based on Category Id in url Query String

texts:
I'm working on an EE2 site (yes I know it's old) and we have a super search search results page that displays results from one particular category based on the url.

What I need to do is get the category id from the url which looks like this:

https://domain.com/articles/results/search&keywords=&category=COVID-19&catId=799/

Once I have that I can display the category info. Is there a way to do this?

Have tried mo variables but this -- {get:catId} -- outputs -- -- so I can't work with that.


texts: Correct setup for Google Maps in multi-language site

texts:
The project I'm working on is multi-lingual, there is a large member sign-up campaign planned and it is necessary to show statistics, and ideally also a map with marker clusters, to display where the members are coming from. I've tackled the map part without a problem using Google Maps by Objective HTML but I'm running into problems trying to figure out:

1- how to have the locations translated so that, for example, in english you read New York, USA but in portuguese you get Nova Iorque, EUA.

2- what method to use so that I can display a list of all the countries which have members on the site and the number of members per country.

3- it's important to be able to search the members by region/country but I can't get the search form to work properly, do I need dedicated lat/long fields?

I suspect this all comes down to how I setup the Google Maps field type, if I have dedicated fields for lat/long and the formatted address or not. I'll be using Publisher for the translations but I'm still not sure what's the best field setup.

Also, let's say there are hundreds of markers to display on the map, the clusters take care of that visually, but how do you cope with the memory usage?

I will be using EE 2.9, Zoo Visitor for the registrations, Publisher, Low Search and Google Maps amongst others.

Thank you for your help any input is welcome!


texts: Display results by relevance in keyword search only using Low Search

texts:
By default, I want my Low Search results to display with an orderby_sort of last_name|asc:

{exp:low_search:results
    collection="my_collection"
    default:orderby_sort="last_name|asc"
}

But when a keyword is present, I want the search results to be displayed by relevance.

I tried using a conditional around the orderby_sort parameter above like this:

{if low_search_keywords}orderby_sort="low_search_score|asc"{if:else}default:orderby_sort="last_name|asc"{/if}

But this does not seem to work.


texts: I’m looking for an easy way to add a bit of dynamic text to a svg graphic. Basically, I need to change a few characters (<50) next to a logo, and have it display in the correct font. Anyone done this with EE?


texts: Stash + conditionally embed content from different channel

texts:
I have a feeling I'm missing something incredibly basic but I'm stuck so here goes.
I have a basic html page {stash:embed:layouts:standard}  that holds a 2-col layout.
The main column and sidebar have content from the "site" channel but in the sidebar the user has a choice to embed 1 (the most recent) item from the "news" channel (using a PT switch field).
The standard way I know but I'm stumped on doing this the stash way.

layouts:standard is basically

    {exp:stash:get name="intro"}

        {exp:stash:get name="main_content"}

        {!-- this should be conditional --}
        {exp:stash:get name="nieuws"}

        {exp:stash:get name="sidebar"}

My main template is simply

{!-- main layout --}
{stash:embed:layouts:standard}

{!-- main content --}

{exp:channel:entries channel="site" disable="member_data|pagination" category="{segment_1_category_id}" dynamic="off" url_title="{segment_2}"}
{if no_results}{redirect="404"}{/if}

{exp:stash:set name="banner"}{cf_site_main_image}{/exp:stash:set}

{exp:stash:set name="main_title"}{cf_site_main_title}{/exp:stash:set}

{exp:stash:set name="sub_title"}{cf_site_sub_title}{/exp:stash:set}

{exp:stash:set name="intro"}{intro}{/exp:stash:set}

{exp:stash:set name="main_content"}{body}{/exp:stash:set}

{exp:stash:set name="sidebar"}{sidebar}{/exp:stash:set}

 {if cf_site_add_news == "y"}
    {!-- the single news entry here only if switch set to yes --}
 {/if}

{/exp:channel:entries}

{!-- news item for sidebar --}

{exp:stash:set name="nieuws" save="yes"  scope="site" parse_tags="yes"replace="yes" refresh="240"output="yes"}
{exp:channel:entries channel="nieuws" disable="categories|category_fields|member_data|pagination" dynamic="off" limit="1"}
    {cf_nieuws_content}
{/exp:channel:entries}
{/exp:stash:set}

What trips me up is the conditional if statement {if cf_site_add_news == "y"} - how and/or where do I process it? Am I making it clear enough?


texts:
I am using Minimee 2.1.9 to combine and minify my css and js scripts on my EE 2.6.1 site. All works wonderfully if I don't have Template Caching turned on. When I turn on template caching for a particular template, the page will load the first time, but after that, the minimee tags just return something like this "{f4acc930e16260a7c8fcfd443f232ba1fb6b238e}" instead of the minified/crunched  or  tag.

My issue seems similar to what's happening with this thread:

Stash, switchee and template caching outputs a random string {6ee64145dfa4ae5926a9c326266d5954499133923}

But I'm not using 'Stash'.

Any idea how I can get around this, so I can use template caching?

Also, my {minimee} tags are within some Low Variables snippets, but I don't think that's related, as I've done a test where I bypassed low variables and got the same issue.

THANKS!


texts: displaying a flash message after redirect

texts:
I'm programming an EE extension, and in the save_settings() method, if I redirect() (after unsuccessful data validation), the message stored in the set_flashdata() method doesn't show.
 If I comment the redirect and let the method put the user back in the main extensions page, then the flashdata shows up fine. It's only if I redirect that the data isn't shown.

This is my save settings method - as near as I can tell I'm not doing anything out of the ordinary - it's mostly boilerplate as near as I can tell. I'd be very appreciative of anybody that can shed light on this...

function save_settings(){

    // no unauthorized access
    if (empty($_POST)) {
        show_error($this->EE->lang->line('unauthorized_access'));
    }

    // get the routestring then convert it to an array
    $routestring = $this->EE->security->xss_clean($this->EE->input->post('routes'));
    $results = $this->routes_to_array($routestring);

    // if the conversion was ok:
    if ($results['status'] == 'success') {

        // update db
        $this->EE->db->where('class', __CLASS__);
        $this->EE->db->update('extensions', array('settings' => serialize(array('routes' => $results['results']))));

        // set flash data
        $this->EE->session->set_flashdata('message_success', "Routes updated.");

    // if something went wrong during conversion:
    } else {

        // set flash data then redirect back to edit screen
        $this->EE->session->set_flashdata('message_failure', $results['message']);

        // IF I COMMENT THE FOLLOWING LINE, THE FLASH DATA SHOWS UP FINE
        $this->EE->functions->redirect(BASE.AMP.'C=addons_extensions'.AMP.'M=extension_settings'.AMP.'file=apsdsm_bossyboots');
    }
}

OK, this is my view file - as far as I can tell this is as boiler plate as it gets. More boiler plate than a dish that's been held in scalding water for ten minutes.

<?php echo form_open('C=addons_extensions'.AMP.'M=save_extension_settings'.AMP.'file=apsdsm_bossyboots'); ?>

                Routes

                <?php echo form_textarea(array('name'=>'routes', 'value' => $routestring)) ?>

                <?php echo form_submit('submit', 'Update Routes', 'class="submit"') ?>

<?php echo form_close()?>


texts:
Currently I have a function called redeem_coupon() in one of my modules in a EE2 project. I also have the button in a <form> element to link the function to. I know I have to add the function to the database table called exp_actions. I have the following code for the button:

<form action="./" name="redeemcouponform">

      <input type="text" name="couponcode" maxlength="12"/>
      <input type="submit" name="submit" value="APPLY" class="button tiny success" />

  <input name="ACT" value="{AID:Lb_cart:redeem_coupon}" type="hidden">
</form>

Is there any specific way I need to connect the button to the ACT so it can fire the function when the button is clicked?


texts: MX Notify Control: multiple php errors when saving an entry

texts:
I just updated to EE2.7, and I'm getting this error when I try to save an entry:

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1588

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1194

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  Return-Path Filename: libraries/Email.php Line Number: 889

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1588

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1194

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  Return-Path Filename: libraries/Email.php Line Number: 889

  A PHP Error was encountered
  Severity: Notice Message: Undefined index: From Filename:
  libraries/Email.php Line Number: 1588

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1194

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  Return-Path Filename: libraries/Email.php Line Number: 889

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1588

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1194

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  Return-Path Filename: libraries/Email.php Line Number: 889

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1588

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  From Filename: libraries/Email.php Line Number: 1194

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  Return-Path Filename: libraries/Email.php Line Number: 889

  A PHP Error was encountered Severity: Warning Message: Cannot modify
  header information - headers already sent by (output started at
  /home/content/19/5501119/html/system/codeigniter/system/core/Exceptions.php:170)
  Filename: libraries/Functions.php Line Number: 809

  A PHP Error was encountered Severity: Warning Message: Cannot modify
  header information - headers already sent by (output started at
  /home/content/19/5501119/html/system/codeigniter/system/core/Exceptions.php:170)
  Filename: libraries/Functions.php Line Number: 809

  A PHP Error was encountered Severity: Warning Message: Cannot modify
  header information - headers already sent by (output started at
  /home/content/19/5501119/html/system/codeigniter/system/core/Exceptions.php:170)
  Filename: libraries/Functions.php Line Number: 414

I'm using MX Notify Control to notify users when an entry they've authored is updated, and it looks like trying to fire off the emails is causing this error. I've updated to the latest version of every add-on I'm using, including MX Notify, and I can't find any info on these errors. Any thoughts?


texts: Expresso Store and SKU related product picture

texts:
Is there any way to have SKU related product image? My goal is to have changed product image on SKU change (product option change).

It looks like that I need to customize part which is responsible for a dynamic SKU display, but I'm not 100% sure and I want to avoid some overhead in that case.

Thanks for any tips.


texts: Low Yearly Archives Showing Total News Articles in Two Languages

texts:
I have a bilingual website where I am using Low Yearly Archives to create a dropdown that shows how many news articles have been added in a single year using the {entries_in_year} tag. Only issue is it is showing double what the entries are because I have a bilingual site (using Transcribe) so each entry has an associated entry in another laguage. Is there a way for the {entries_in_year} tag to only show the count for the number of entries in that year for that specific language?

Thanks.
Stephen.


texts: How do I delete an order (expresso store) in the control panel?  I'd like to be able to delete the tests I'm doing.  Even cmd+f "delete" on the pages turns up nothing.


texts: Upgrading a site from 1.x to 2.x - how to merge back into production?

texts: I am upgrading and redesigning a mid-size, member-driven site from 1.7 to 2.5. I have created a local development environment and upgraded it successfully. Work on the updated templates and so on is happening right now. The question I have is: what will be the best way to merge my changes back into the production site? Obviously, there are database changes between 1 and 2, as well as template tag changes. I will also need to install new add-ons and make other changes that affect the database. Is there any better way to handle this than by manually merging each DB table when I finish? That will work, but it's going to be a huge pain. How have other people handled combination upgrade/redesigns on live sites?


texts: I would like to auto login returning members who have registered on the site before using Solspace User. Is this possible? Is there an auto login tag/plugin I could use when they register?


texts: Apparently I don't know how exp:channel:entries status and limit work together

texts:
I want to grab the 1 most recent entry and display it big. Then I want to grab the next most 6 recent entries and display them small.

So:
{exp:channel:entries channel="blog" limit="1"} and {exp:channel:entries channel="blog" limit="6" offset="1"}

The problem is if my most recent blog entry is closed. Then nothing big shows up and the small items start at the 2 blog entry (the closed entry is offset). I get the same results if I add status="open".

All this time I had assumed exp:channel:entries would consider the status before applying the rest of the params, especially limit and offset. Since status param defaults to open, obviously I want to limit to the open entries.

Am I wrong? Is it something new with v2.8.1? How did you think it worked?


texts: Can I update a customized fieldgroup GUI across multiple channels?

texts: I apply a particular fieldgroup, "Common", to about 15 channels. I've customized my tabs and locations of the fields to make it easier to use. Every time I add a field, it's added to the bottom of the Publish tab, then I move it somewhere else. I don't mind doing this, but I do it times 15 channels, so it gets tedious. Is there any easier way?


texts: Using Freeform - have form errors display in modal window (Fancybox) without closing

texts:
I'm working on a form (using Freeform) that lives in a modal box (become a partner on this page: http://framework.tunnel7.com/partners

What I'm trying to accomplish is having the error messages displayed inline (I have those parameters in place) when a user hits submit in the same modal window.

What is happening now is on submit the modal closes and if you click on the become a member button again it displays with the errors inline (so it's working) ... but I can't see a way to keep the modal open if there is an error.

Is there a way to accomplish this that I'm overlooking?


texts: Displaying the value of a specific row/column in a matrix channel field

texts:
I am attempting to make a dynamic table for some of my products in ExpressionEngine.

Right now I have the table data set up as a matrix channel field type. Each of my products has 3 variations with 8 columns of specs for each variation. My question is, how can I output a specific row in a column on the front-end.

My channel fields are cell_1 - cell_8. If I put {cell_1} into a  it generates 3 tables with each table using a different row from that column.

Is it possible to output a specific row from a matrix column?

Thanks!

Here's an example of my current code:

    Size
    {cell_1} (want to call cell 1 row 1 here)
    {cell_1} (want to call cell 1 row 2 here)
    {cell_1} (want to call cell 1 row 3 here)

    Color
    {cell_2} (want to call cell 2 row 1 here)
    {cell_2} (want to call cell 2 row 2 here)
    {cell_2} (want to call cell 2 row 3 here)


texts: Javascript Updated prices with exp:resso Store

texts: I would like Expresso Store to update my product price every time I choose a modifier. Is there an easy way to do this built into the store?


texts: In expresso-store is there a way to create a "Wishlist" or a saved cart that could be different from the checkout cart?

texts: Looking to have the "add to wishlist" functionality in expresso-store.  This is basically just a saved shopping cart for the user.  The distinction is that it's not the cart that gets purchased in the checkout process.  Any ideas?


texts: Wygwam - Applying style to Unordered List

texts:
How can I apply a style in Wygwam editor so that the following code

Here's bullet point number one

Changes to this

Here's bullet point number one


texts: Custom event listeners with Google Maps For ExpressionEngine field type

texts:
I need to add a custom event listener (to trigger a modal window) to a Google Map that is generated and managed using Google Maps for ExpressionEngine. To this end I'd like to output my own Javascript using values from the field but not the marker scripts injected by the add-on.

Is there a simple way (using EE tags) to get individual bits of data, say, the formatted address, latitude or longitude, from a Google Maps for ExpressionEngine field?

For instance, I have a GMap4EE field named conf_map - this is storing JSON data retrieved from Google Maps.

Now, on my template if I used the field tag {conf_map id="map"} it would do what it's supposed to and create a map marker on the map with the id of "map". However can I use something like {conf_map:latitude} to get the latitude of the marker?

I know I can create additional fields and have the add-on store latitude and longitude data in there when I save an entry but since I will also want address data, icon data etc. it would seem like I need to directly access the json data. I was hoping to avoid having to make some kind of parser for the data since I think that's a bit beyond me!


texts: Pages module affect use of category url indicator?

texts:
Putting together a blog template, using switchee to create all the related templates within the one.  I have 'Yes' selected for 'Use Category URL Titles In Links' and category is my reserve word.

My variable for switchee is {segment_2}.
my first case value is the following:

{case value="#^P(\d+)$#|''|category"}

my default case also has a value of 'article', see below:

{case value="article" default="Yes"}

The first case is to show the blog index, pagination and the category listing.  Second is for single entry.  I've used this numerous times before with no issue, but when placing this in this recent site the category value will not work.

I've even pulled this out of the first case above and placed in its own, see below:

{case value="category"} test {/case}

This doesnt work either.  But if I change the category url indicator reserve word from 'category' to 'topic' it works just as it should.

Again only thing I can assume is the Pages module is affecting it some how but really not sure as I don't think this would be an issue.

If not Pages, anything else possibly the issue?

Thanks is advance!


texts:
Just upgraded my solspace favorite to version 4.0.

In favorite version 3 I could use

  {if saved}{/if} and {if not_saved}{/if}

My question:
I want to use a variable to set my css to "active"
So if I already added that member to my favorites the link will be red.
If not than the link will be blue.

What I tried so far and does not work:

  {exp:favorites:info username="{visitor:email}" disable_pagination="yes"}
  {if favorites:favorite_id == "{favorites:favorite_id}"}

or

  {exp:favorites:members favorites_username="{visitor:email}" disable_pagination="yes"}
  {if favorites_username == "{visitor:email}"}

fav

  {if:else}

fav

  {/if}
  {/exp:favorites:members}

Hope someone could point me in the right direction...

Solspace Favorite 4.0.2
Expressionengine 2.9.2


texts:
Using sagepay_server gateway in test mode can get to payment page fine but on submit I get sagepay errors:

HTTP Status Code: 500
HTTP Status Message: The request was unsuccessful due to an unexpected condition encountered by the server.
Error Code : 5006
Error Description : Unable to redirect to Vendor's web site. The Vendor failed to provide a RedirectionURL.

Return URL is in place in the checkout tag, using return="shop/order/ORDER_HASH" which usually works fine.

Settings for clients sagepay account are correct.


texts:
I am trying to just get relationships based on a certain category (accommodatie_lesaanbod_relatie). However this doesn't seem to do anything. All relationships are returned without any regard to the category it's in.

{exp:webs_low_search:results
    collection="accommodatie"
    categories_in_children_from_channel="les"
    disable="member_data|pagination|categories|category_fields"
    parse="inward"
    location_based="n"
    radius="{location_filter_radius}"
    limit="5"
}

    {stash:channel}{channel_short_name}{/stash:channel}
    {stash:channel_name}{channel}{/stash:channel_name}
    {stash:url_title}{url_title}{/stash:url_title}
    {stash:title}{title}{/stash:title}
    {stash:entry_id}{entry_id}{/stash:entry_id}
    {stash:item}accommodatie-{count}{/stash:item}

    {stash:subtitel}{accommodatie_stad}{/stash:subtitel}
    {stash:afbeelding}{accommodatie_afbeelding}{/stash:afbeelding}
    {stash:href}/{channel_short_name}/{url_title}{exp:webs_filter_url}{/stash:href}

    {accommodatie_lesaanbod_relatie category="5"}
        {exp:stash:append_list
            name="list-les-1"
            parse_tags="yes"
            save="{cache_collectie_h}"
            scope="{stash:_scope}"
            replace="{cache_replace_h}"
            refresh="{cache_refresh}"
        }
            {stash:title}{accommodatie_lesaanbod_relatie:title}{/stash:title}
            {stash:item}les-{accommodatie_lesaanbod_relatie:count}{/stash:item}
        {/exp:stash:append_list}
    {/accommodatie_lesaanbod_relatie}

{/exp:webs_low_search:results}

Does anyone know what the problem might be? Thanks!


texts:
So here's something weird that's happened: the site is still generating previously created content on our site -- http://www.comicsreporter.com -- and I can get to EE, and open posts, but I can't save an edit, can't submit anything, and can't search for a posting by name. I also can't save changes to configurations -- like I can click "off" on Auto Check but it doesn't save. In all cases, saving, submitting, or searching returns me to the CP Home page.

Help? We're running an old-ass version (1.4.1), but any help via any version might be appreciated.


texts: Can I view how many times a user has logged into my site in EE?

texts: All I can see is when they registered and when they last logged in. Can I get more detail - for example, how many times they have logged in, the time they spent on the site etc. Many thanks.


texts:
EE has been a great tool for my work, however there is one very perplexing problem that I wish I could solve. I'm hoping someone might point me in the right direction. I'm trying to implement a method that will automatically update Twitter & Facebook (+others) when I add a new entry with something like {title} {url}.

I'm looking to post a lot of photos to my site, so I want to direct people back to my site instead of using something like Twitpic or Instagram. A lot of this will be done from my phone while traveling. And this would be very similar to creating a Twitpic / Instagram type system using EE.

Here is what I had in mind and I'll explain the issues I've encountered.

A DSLR camera photo is sent to my Blackberry phone using Bluetooth and that image is sent via email to EE via Moblog
Moblog uploads the image and creates a new Entry. All of this works fine so far.
I wanted to use Solspace Shortcut to create a short link, however Moblog only supports text area fields, so this didn't work.
To update Twitter & Facebook, regarding the new entry, I can use email (for Twitter I use Tweetymail and Facebook uses their secret email address). I thought about using MX Notify to send an email whenever an entry in the Photo channel is made. The problem is that for Facebook the update needs to be the email subject, the email body is ignored, and MX Notify doesn't support dynamic content in the subject line. It would work brilliantly if it did because then you could just put {title} {shortcut-url} in and it would update Twitter and Facebook every time a post was entered.
I've attempted to get around the Moblog / Solspace Shortcut issue by wrapping the {exp:shortcut:url} around the long EE URL, but the parse order doesn't work so it doesn't send a link.
I also use CE Image to handle the image manipulation and uploading to Amazon S3 / Cloudfront.

I've also looked at a number of the social media modules (NSM Twitter, TweetLink and Social Update) and though they say "automatically" that is not the case. They are simply another field that needs text entered and then that is pushed to Twitter. This won't work with Moblog, though there is a possibility that they could (I'm not a programmer, unfortunately).

To summarize the problems, Moblog doesn't support any other fields other than text area and MX Notify doesn't support dynamic content in the subject line and all of the social media add-ons don't do things automatically.

As I mentioned, the goal is to simply send a picture to EE, have it create the entry and then send off the {title} and {url} to Twitter and Facebook. It seems simple, but I haven't figured out how to do this yet, and I've tried a lot of things.

Does anyone have any suggestions?


texts: Focuslab Master Config staging server not working

texts:
I'm 100% this is user error on my part.

I'm using the focuslab master config set up to run locally, staging and live. The site works correctly on live and locally but staging I keep getting a database error.

Unable to connect to your database server using the provided settings.

Filename: core/EE_Config.php

Line Number: 207

After looking at this thread I added exit('here'); to config.stage.php but nothing happened. I've tested the database credentials in another script and the connections are working there. Am quite lost.

my config.env.php file has the following:

switch (strtolower($_SERVER['HTTP_HOST'])) {
    case 'domain.ca' :
        define('ENV', 'prod');
        define('ENV_FULL', 'Production');
        define('ENV_DEBUG', FALSE);
    break;

    case 'domaindev.com' :
        define('ENV', 'stage');
        define('ENV_FULL', 'Staging');
        define('ENV_DEBUG', FALSE);
    break;

    case 'localdomain.dev' :
        define('ENV', 'local');
        define('ENV_FULL', 'Local');
        define('ENV_DEBUG', TRUE);
    break;

    default :
        define('ENV', 'local');
        define('ENV_FULL', 'Local');
        define('ENV_DEBUG', TRUE);
    break;

The live site is at domain.com and staging is at subdomain.mysite.com

I can see the working site locally and on live (just deployed the master branch to live and to staging), but getting the database error on staging.

Please advise


texts: Allow front end selection of time zone to change times on entries

texts:
I have a series of entries all set to fixed time in the system (and they're all Eastern time). These times are displayed on the front end to the user. But I've been asked if it would be possible to localize the times on demand by the visitor - so like a simple dropdown that would allow them to select "pacific" and have the page refresh to pacific times for all entries AND have that setting carry with the user throughout their visit (I'm not fussy about a return visit).

Is this possible? There's no time zone parameter or anything in the entries loop so I'm struggling with what the simplest solution would be.


texts: Can Exp:resso Store sell bundles of products?

texts:
I've installed a shop for a client, but told him that we most probably have to switch to cartthrob because of the high requirements the final shop will have. at the moment they are just selling the merchandizing stuff and they really really love the tool! and I love it too! so before switching, I might as well ask you if exp:resso store can handle the final requirements:

it's a record label store:
so products of a typical release can contain:

merchandizing stuff like t-shirts (w/ modifyers, colors, sizes), posters, books, dvds etc.
the physical product like cd, lp, mp3 stick
the virtual product, like mp3’s, wav, aiff files.
tickets to shows
bundles of 1-5… like, buy an album, get a ticket for free… or any other combination.

so putting this all together will be rather complex I think.

eg:
if someone buys the physical LP (yes, vinyl), they should automatically get the download version for free.
you should be able to purchase one digital song or the whole album. but the bundled album price vs. all songs should be a little cheaper.
there should be different prices for mp3’s, aiff, flacs and wavs…

now my question is:
has this already been done with store?
do you have code samples of a working shop?
do you think such a thing is feasable with store?

cheers
stefan


texts: How can I display a code example (HTML plus EE-tags) in my blog post

texts:
In my blogpost (SE-page) I want this code to be treated as text and not as code since I want to show it as an example.

{title}

I wrapped it in -Tags, but it didn´t work. It renders to

Im the actual title of the entry

and the source is

Im the actual title of the entry

When I use the EE tag [code] while entering the text in the CP I have the follwing in my Matrix TinyMCE field:

[code]{title}
[/code]

When I submit my blog entry in the CP I see a nicely formatted and colorcoded string on the "view entry" page.

When I let EE the page render I see

[code]Im the actual title of the entry
[/code]

Same case as above. EE renders the {title} field and low_replace. The only difference is, that I have the surrounding [code] tags.

Why do the low_replace add-on and the {title} get rendered and how do I stop this?

EDIT: Removed the part with Allow EE, since it led to confusion and edited the title for clarity.


texts: Multiple Site Manager Can't Add Site EE 1.6.8

texts: I need to add two sites to my Multiple Site Manager in Expression Engine 1.6.8.  There are 24 microsites already.  The first I added, and it looks ok, but I do not get the "Create a New Site" link when I go to "Edit Sites".  I'm worried that the database has too many columns or something like that.   Any suggestions?


texts:
I wonder where the {field:register_member} can be translated?
I've looked through the Store lang file, but it does not seam to be translatable?

I have store 1.6.3 and EE 2.5.5.

cheers
stefan


texts:
I have a channel setup called Testimonials. With each testimonial, the client wants to show one of two supporting accolades (e.g. "Focused, cohesive strategies" or "We listen"). I put these supporting accolades into a grid thinking that I could display them randomly, one per row; however, that is turning out to either not be possible or I can't figure out how to do it.

The problem I see is that there isn't a way to target a row within an entry. There are only two rows per entry, so I assumed I'd be able to setup a conditional to show one or the other, but I don't see a way to target row 1 or row 2. The row_id parameter provides the IDs for all rows in the table (currently 12), not just the rows within the entry. Same for fixed_order.

This is the code I tried, implementing the low_random plugin to set the row variable to either 1 or 2:

{exp:channel:entries channel="homepage_testimonials" disable="categories|member_data|category_fields|pagination" status="open" dynamic="no"}

        {if {random_row} == 1}

{home_accolades row_id="1"}{home_accolades:accolade}{/home_accolades}

        {if:else}

{home_accolades row_id="2"}{home_accolades:accolade}{/home_accolades}

        {/if}

{/exp:channel:entries}

So my question is, is it possible to display a random grid row?


texts: Search results pagination and ordered list numbering

texts:
I have a search form with pagination that has a limit of 10 results per page. The problem is that the numbering of the ordered list is not continuous and starts over on each page. For example, if the search produced 15 results, page 1 would show results 1-10 and page 2 would show 1-5 rather than 11-15. Is there another way to format the results so that the numbering is continuous?

    {exp:search:search_results paginate="both"}

{title}

          {excerpt}

{page_url}

    {/exp:search:search_results}

{if paginate}

       {page_count}&nbsp; {paginate}

{/if}


texts: What's better for performance when storing multiple vars in a single entry with stash? Set or Set_list?

texts:
I'm curious if anyone that has either done a comparison between the two or simply knows why one would be more efficient than the other. Stash set vs. set_list in storing multiple individual field variables for a single entry.

Example:

A template group index that generates "pages" on the basis of entries that includes, for example, the following fields:

title (obviously)
alt menu title
body (RTE field)
promo image
extended body (RTE field)
Meta Title
Meta Description
Meta Keywords

So to create a variable out of each one of these fields distinctly, I could either wrap each with a simple stash:set tag pair or I could wrap the whole thing with a stash:set_list tag pair and wrap each variable with the tag pair to set each as list elements.

Then in the wrapper template, in the set_list scenario, when I have several of these elements that actually need to appear together (like title, body, extended body and promo image, for example), I can use a single get_list tag pair to retrieve the several of them I need whereas with the simple set scenario, I would need a get for each variable separately, even if four of them follow one another sequentially in the markup.

What are the performance issues I should be worries about?  Or should I be worries about it?  To me, they seem to run about the same speed, but I wonder if the database and stash experts out there can speak to how/if there would be differences, particularly as the number of fields in a given field group climbs.

I have thought about the fact that the stashed body of the page could in fact combine several of the fields in the field group into a single stashed set (whether list or not).  But for the purposes of this example/question, I thought I'd keep them separate.


texts: CartThrob Price Modifier Not Adding Price

texts:
I have a CartThrob price modifier being output in an EE template and everything displays fine. The problem is that no matter what, the price modifier isn't doing anything to the actual price of an item.

Here's the template code for the price modifier:

{exp:cartthrob:item_options entry_id="{embed:entry_id}"}
{if dynamic}

        {option_label}{input}

{if:else}
    {if options_exist}

        {option_label}:
        {item_options:select}
            <option {selected} value="{option_value}"> {option_name}{if price} {price}{/if} </option>
        {/item_options:select}

    {/if}
{/if}
{/exp:cartthrob:item_options}


texts: Why is a Stash embed rendering within a "if no_reverse_related_entries" tag but a normal embed does not?

texts:
I am not sure if I have been staring at the screen too long today or what but I am having a major lapse in brain power. Here's the deal:

I have a list of images that I relate to specific entries
I use a reverse_related_entries tag to display the images on the related entry
If an image does not have an entry associated with it I want to randomly pull an image from the images channel and display it on the entry view.

Here is the interesting issue. The {stash:embed} (that is commented out below) gets rendered in the "no_reverse_related_entries" tag (when uncommented) but the normal EE {embed} does not render if there aren't any reverse related entries.

{exp:channel:entries
  channel="ch_pages"
  status="open"
  limit="1"
  {global:param_disable_default}
}

  {reverse_related_entries
    channel="ch_page_header_images"
    status="open"
    limit="1"}

    {if no_reverse_related_entries}
      {embed="test/random_header_image"}
      {!-- {stash:embed:includes:em_random_header_image} --}
    {/if}

    <img src="{cf_header_image:medium}" alt="{title}" width="390" id="Header-Image" role="img" />
  {/reverse_related_entries}

{/exp:channel:entries}

Stash embeds, unless tweaked with the "parse_stage" parameter (and with the defaults in place), seem to be parsed like regular embeds in other area of the site (and per the Stash docs). Where am I going wrong here?


texts: How do I check if a field value has changed in a entry_submission_ready hook handler?

texts:
I am writing an extension for the hook

entry_submission_ready

I see that it has 3 params(meta, data, autosave).

I look at data and I see there is channel data in there and a revision post data index.

I assumed that the revision post data contains the old, not updated data.

But when I compared then to the top level data, they are the same. Both also show the updated data.

Is there any way I can access the old data? Do I need to use a different hook?

How do I know if a field value has been changed by edits?


texts: How do I set up simple commerce to perform actions on a successful purchase/unsubscription?

texts: I'm trying to set simple commerce to update a member field when a purchase has been made. How do I do this? I'd also like to do this when a user unsubscribes from our site.


texts: Freeform Pro - displaying entries using composer template

texts:
I used composer template to drag n drop and make my form.  I have it working fine and allowing a submit.  Now I need to let an admin display each persons application that was submitted through this form so they can print it.  Viewing the forms through the module tab doesn't give a nice print layout like I need.

Is there a way to display all of a specific entry_id entries with the same form layout made from composer template? This is the code I'm using to show the initial form

{exp:freeform:composer
     form_name="office_employee_app"
     composer_template_name="office_employee_template"
     return="admin/office-application-signature"
}


texts: Page breaking at random - content disappearing

texts:
Here's a conundrum. A basic site, in EE2.4. This page has links in the left col, with content loading in the right col via a simple AJAX call. The code generate by EE is correct.

http://www.thresholdinteriorsnyc.com/press/

Some users report it working fine, while other report it broken. This doesn't seem to be browser-related. The problem of it not working is intermittent.

Hosted on on Rackspace.

Any ideas?


texts: Is there any possibility to set a maximal width (or height) for the image selection modal window in wygwam?


texts: Help Desk (by krea) won't upload attachments

texts:
I'm using Helpdesk add-on (EE 2.10.1 HD 1.2.5). I have a problem with attachments. If someone emails me attachment it works fine - it is visible in the Helpdesk panel, and in the server folder. Path and the url are set properly and destination is writable. However If I will reply, post note with the attachment it will not be write to server. I get no error but the attachment is not written. Same story with the creating ticket. I'm able to select the attachment but after saving the ticket the file is gone.

I did the clean install of the EE and the HD but the issue persist.

I'm on Mac, tested with few different browsers.

Any ideas?


texts: Anybody knows why Grid only displays the first 100 rows.  I have a grid with 267 rows in control panel, but when I pulled the grid in my templates, it only shows 100 rows.  Does anybody knows why?


texts: About the visitor statictics that ExpressionEngine gives

texts:
Ok, as all knows, there is issues with the last visit-info. That has been there long time, but now i have monitored the real-time statistics also. And what i found, that there is something in that also. Site says that it has about 50-60% more current visitors than Google Analytics. So that make me wonder, how i can trust to any of these infos.

So, what all you have to do, that system itself stops from tracking visitors and such? I just dont find this feature reliable anymore since logs doesnt match at all.

In simple: is or isnt there a way to totally stop tracking? It might and will also speed up the site if i just can stop all activity when it comes to tracking, and i dont find it nice either to tell wrong infos to members when they access to site that says "56 users logged in" but the real number is more like 8....

Thanks for any ideas that you might have.


texts: Template is rendering Grid field output incorrectly within an  tag

texts:
I have a Homepage channel setup with a homepage field group.

Within the field group, there is a homepage_slider Grid field and within that Grid there is an image and page_link field.

When called in via the following {homepage_slider:image} renders correctly (the image shows without issue.

However, using the following:

Renders only as:

Outside of the  it appears to work and display the correct page_uri.

Looking at the syntax, it looks like it should be OK and I've trawled through the other settings inside the CMS without much luck in terms of debugging. I've also incrementally removing elements of the template and the problem occurs as soon as the element goes inside of the  tag.

EDIT:
Here is the full code block:

{homepage_slider}

    {exp:ce_img:single src="{homepage_slider:image}" width="960" height="450" crop="yes"}

{/homepage_slider}

(Note: Running EE 2.8.1)


texts: EasyPost integration with Exp:resso Store

texts:
Has anyone tried integrating EasyPost with Exp:resso Store? They seem like a good fit, and I might have a go at it myself if necessary, but I don't want to duplicate anybody's work.

Alternately, is there a basic template for a Store shipping module that I can start from?


texts: Ideas please for creating survey and/or a poll

texts:
I need to start making weekly “survey” but not sure what way is the best to go.

Wish for some idea how to be able to manage simple poll that it is easy to store to database and easy to look overall stats when times goes (for old poll’s/surveys).

Current survey/poll results available after their submit to see for all users and site visitors.

Idea is simple:

Site: one question
User input: one out of 3-5 available choices
Note: no email or anything else user input needed
Action: redirect to same page to show results so far.

Another in mind is:

Site: One question
User input: simple textarea to fill in.
Note: email input available, not required.
Actions: redirect to page that simply says “thank you for your answer”.

——

Data handling:
Admin-panel: easy access to collected data and results.

Thanks


texts: DevDemon Forms - Entry Linked breaks publishing/editing entries

texts:
When using a Forms channel field, pressing submit after creating/editing an entry just kicks you to the main page. This was working for a while but a client just notified me that they can't edit/create content.

Versions:
Forms: 3.5.2
ExpressionEngine: 2.7.2


texts:
I have created Zoo visitor members to have the ability to upload only one entry via safecracker with status close (Which I can do that). They will be allowed to tweak the content whatever they like.

I am hoping to find a way, to create a monthly payment to switch the status to open to make it visible to public.

Before I develop anything. I saw the price for Cartthob Subscription which is very steep and cannot afford right now. I would like to know if it possible to work with Simple Commerce, has anyone done this before or offer me a guidance.

Looking above at my request which looks really simple, $299 is too steep for this Cartthob Subscription feature.

ps: I do not have any experience with payment gateways setup.

Many thanks


texts: Require account activation with Cartthrob and Profile:edit issue

texts:
I have an EE 2.5.5 site. Using Cartthrob 2.2.9 with Profile:edit 1.0.9 as well.

During checkout I've set the create_user="yes" param which does in fact create a member upon checkout completion.

I have CT setup under the Members tab to use Profile:edit.

I receive an email asking to click a link to activate said account. This email is based on a message template "Member Account Activation Instructions" in EE itself which uses {unwrap}{activation_url}{/unwrap} to create the actual link

The link looks like:  http://mysite.com/?ACT=14&id=3YI1MYDJtG

When I click this link I get an error as follows:

  Error Invalid activation request.

Note: I'm using custom system messages

In profile:edit I set "Require Member Account Activation?" to be "Self-activation via email".

There is this setting in Cartthrob under the Member tab:

I have this set to Auto Login so it pulls the data from the checkout form to the member creation fields (and then on to to P:E or vice versa I presume.)

Questions:

Does Cartthrob automatically activate the user upon checkout with the above setting? And if so why is there an email still being sent out for activation? Would that be the cause of the error then? Is this a bug on the part of CT, P:E or EE maybe?
Is there a setting which I'm missing in EE, CT, P:E or combination
there of which I need to set to get the activation working properly?

Thanks!


texts: Assets & S3: Output Source Folder + Subfolder + Filename

texts:
I have a file on S3 uploaded with Assets. The full URL is:

http://s3-us-west-2.amazonaws.com/my-bucket/source-folder/subfolder/file-name.pdf

source-folder is the subfolder in the bucket where the Assets directory is set.

I want to output this path:

source-folder/subfolder/file-name.pdf

{my_assets_field:server_path} gets me /subfolder/file-name.pdf, but I can't find any way in the Assets field tag to dynamically output the source folder.


texts:
Trying to link to pages as "Related Articles". Here is my code. The template is used to display the articles. My text, "Related Articles" is not showing either. Using EE 2.7. Any help is appreciated.

    {exp:channel:entries category="{embed:pageCat}" limit="1"}

{news_title}

            {entry_date format="%F %j, %Y"}
            {if news_image}
                {news_image var_prefix="file"}

                {/news_image}
            {/if}
            {news_text}

            {related_articles}
                {if related_articles}
                Related Articles:

                {/if}

{related_articles:title}

                {if related_articles:count == related_articles:total_results}

                {/if}
            {/related_articles}

        {embed="includes/zipSearch"}

{exp:channel:entries category="11"}

Spread Awareness:

        {!--exp:navee:nav nav_title="main-site-nav" selected_class="selected"  parent_selected_class="selected" start_nav_with_kids_of_selected="true" start_nav_from_parent="true" start_nav_from_parent_depth="1" only_display_children_of_selected="true"--}
        {exp:navee:nav nav_title="main-site-nav" selected_class="selected" start_node="/spread-awareness/" start_nav_from_parent_depth="2" only_display_children_of_selected="true"}

    {if "{related_video:count}" != ""}

    {/if}

    {/exp:channel:entries}


texts:
The Expression Engine documentation for caching explains that the caches are automatically cleared upon:

  Submission, updating or deleting of an Entry through API

I need to clear the caches via my own extension. Is it possible to tap into a function to clear the caches?


texts:
I moved my EE install from the test server to the live server but when I’m trying to reset the password at site.com/system/index.php the email I get has the domain for the old server under:

  To reset your password, please go to the following page:
  http://olddomain.com/admin.php?D=cp&C=login&M=reset_password&id=0n6xTd0m

How do I fix this so it points to the new domain? I already replaced all instances of the old domain in the database file, so not sure where this would be changed


texts: Will changing the order of Channel Images categories screw anything up?

texts: I've set up a "Channel Images" field that has a comma-separated list of categories. The client wants to modify the order of that list. If I change the order of those categories, will that mess anything up? Will any existing category assignments be lost?


texts: How to remove category URL indicator segment?

texts:
I have a products section with 5 different product categories and all products are assigned to one category only. The current URLs are like this -->http://site.com/products/category/oral-care/. I would like to remove the "category" segment so the URLs are more like this http://site.com/products/oral-care/.

As weird as this sounds I have done this before on a different site. I used a combo of GWCode Categories and LowSeg2Cat to create my product links based on nested categories and successfully created URL's with this format http://site2.com/products/food/fruits/. In that URL food is a category and fruits is a subcategory. I can't figure out what I did to get this working and can't get it working on the new site. Is there a different method? Thanks for any info.


texts:
I'm trying to load the objective HTML Google Maps extension with Ajax. But i don't get it to work. Before i loaded the map without ajax and that works perfect.

This is the code i use:

In the Template:
$('.ajax-map').load('/site/ajax_google');

ajax google maps file
{exp:gmap:init

    id="map"
    class="ajax-map"
    language="nl"
    scrollwheel="false"
    script_tag="false"

    etc...

The page does find the google maps file but doesn't load the map.
Anybody a idea?


texts: "Only allowed to search every 15 seconds" setting for non-logged-in users?

texts: According to EE documentation, you can set the 'seconds between searches' for each member group. But where is the setting for members who are not logged in?


texts: How can I send an automated email to pending members after they complete the registration form?

texts: I manually approve/validate member applications, so I don't need a member activation key email. What I am looking for is an automated email that pending members receive after submitting the registration form that tells them that we have received their info and that they will be approved shortly. I'm not very familiar with EE yet, so any help is appreciated.


texts: Passing preload_replace variables into a plugin

texts:
I've been working on my first EE plugin today, and I need to make it dynamic by passing either a PHP variable, or I would have thought I can use a preload_replace variable, from the template that calls the plugin, into the plugin.

The plugin runs a custom query on the database to return a set of entry IDs into the channel entries tag. But I need to set a category ID in the the template that would be dynamic depending on the template been viewed. This needs to be passed into the plugin for the query to run.

How can I pass this in?

I've tried numerous ways with the template class, and using PHP by setting a variable in the template, but no success. I just keep getting an undefined variable error.

Can anyone offer any pointers, please?


texts: Two channel entries loops on one page, both with pagination

texts:
I am having some issues with pagination.

I have two channel entries loops on one template, both of which have pagination enabled.

One of the loops works fine but the second one, I guess is conflicting.

For example.. the second loop is duplicating the pagination segments in the url

domain.com/P1/P2 etc..

(I am also using this from Aaron Bushnell)

Is it even possible to work them independently on one template? Thanks!!


texts:
I am using the Rest plugin.

Let us say that my API outputs a JSON like this

{
  "8741" : "some data 1 ...",
  "27848" : "some data 2 ...",
  ...
}

I want to access the data via its index. I will know what the index is at runtime.
So how do I access the data?

{exp:rest ...}
 {8741}  <-- can't define this literally since the index is going to be set at runtime
{/exp:rest}


texts: Structure - subnav shows full nav, not sure why

texts:
updated with EE and Structure Version

EE 2.7.2 Structure 3.3.4

I'm building a site with structure and for each section of the site the child pages will be in the side bar so that if I'm on domain.com/about In the sidebar I will see:

About (h4 tag)

--sub page

--sub page

--sub page

However with the code (below) I"m using it output all entries for the entire site. Please advise.

{exp:structure:nav
    css_class="side_navigation"
    start_from="/{segment_1}"
}

What I end up with however is

About

-- subpage

-- subpage

-- subpate

Services

-- subpage

-- subpage

etc...


texts: Is it possible to link a category image in Expression Engine 2+? I have logos as my category images and I'd like to link them to external sites. Thanks.


texts: Selecting a current row in a Matrix field of multiple rows

texts:
Ive got a jquery tabbed area, with each tab showing image and text. Id like the user to be able to click on an image being displayed in a tab (a matrix row) and launch a larger overlay version. I am having trouble being able to call up just a single image from a particular row. (The tabbed area is generated using the matrix fieldtype for rows to create the tabs, in the admin CP form.)

I understand how to use limit and offset etc, but cannot work out how to control which image is seen, ie I need some sort of '{current_row}' - which doesnt exist! Ive tried {field_row_count} and {row_count} and tried using conditionals, but nothing works. Has anyone done this already?


texts: exp:channel:form date undefined with datepicker

texts:
I updated today one of our EE installation from 2.6.1 to 2.7.2 and one of the changes was going from safecracker to EE forms.

All working well except when I use date picker for entry date and closing date. Entry date, by default formatting looks ok, but as soon as I change the date it appear with undefined (example: 2013-11-12un12efine12). Same happens to Expiry date as well.

I've added the css as required and it seems fine:

<link href="{path=css/_ee_channel_form_css}" type="text/css" rel="stylesheet" media="screen" />

and it starts with

{exp:channel:form channel="jobs" return="/jobs/booking/ENTRY_ID"  include_jquery="yes"}

And I believe this is correct as well.

This is the page http://www.youthworks.net/jobs/booking

If anyone have an idea where something is wrong, I would love to hear from you.

Cheers


texts:
Simple question here hopefully.

I have an album page that displays a track listing. With the option for up to 4 discs being displayed as show below.

DISC 1

Track listing

DISC 2

Track listing

DISC 3

Track listing

DISC 4

Track listing

Here is my EE code

{exp:channel:entries channel="disco" status="open" orderby="disco_release_date" sort="desc" limit="1"}

    {disco_disc2_tracks}

{disco_disc2_tracks:title}

    {!--IF STATEMENT SHOWS THE DUET PARTNER AND HIDES THE (WITH) IF THERE ISN'T ONE--}

{if disco_disc2_tracks:track_duet_partner}(with {disco_disc2_tracks:track_duet_partner}){/if}

Written By: {disco_disc2_tracks:track_writtenby}

{/disco_disc2_tracks}

{/exp:channel:entries}

I have 4 of those on the page. 1 for every disc  I want to wrap everyone in an IF statement so that if no tracks are selected on the channel entries page for a specific disc aka that disc has 0 tracks selected - that it doesn't show the header "Disc 2" "Disc 3" "Disc 4" and have empty titles on my page. I have an IF statement for the duet partner already in my code above and it works great, but I can't seem to write one that can hide the whole header and div containing the Disc # and tracks.

Also the tracks are a relationship filed and I'm pulling them from another channel. See image


texts: Expresso Store: Creating orders on behalf of other members

texts: My client needs to be able to invoice customers, have them pay online, and then see payment history. I was planning on having the client enter an unpaid order and assign it to the right member. Then the member could login in, see unpaid orders, and pay them. I'm not very familiar with store. Do you see any major problems with this approach? Is this even doable out of the box? Thanks.


texts:
I have the following code:

{if segment_1  == 'special-offers'}
        {exp:channel:entries channel="products" dynamic="no" url_title="{last_segment}"}
        <link rel="canonical" href="{site_url}{categories limit="1"}{category_url_title}{/categories}/product/{last_segment}" />
        {/exp:channel:entries}
        {/if}

This is returning no entries.  If I remove the url_title="{last_segment}" part, I get all the entries in that channel, which Is not what I want.  Can anybody see why I can't limit the results by the last segment?  Is there another way to do it?


texts: Text formatting in exported Freefrom entries

texts:
When exporting Freeform entries, I get a plethora of "special characters" making the data almost unusable. (I run an international association and so have more actual special characters than most. Example: acadÃ©mica a presentar tanto aportes teÃ³rico-analÃticos ) Is there a way to export data with the text formatting intact?
Thanks


texts: Issue setting Low Variables file path with Focus Lab EE Master Config

texts:
I'm saving my Low Variables as files above web root in a directory named _vars and setting the file path in my Focus Lab EE Master Config file like this:

$env_config['low_variables_save_as_files'] = 'y';
$env_config['low_variables_one_way_sync'] = 'y';
$env_config['low_variables_file_path'] = $base_path . '/../_vars/';

The variables work fine on my local environment and I can see them in the CP. After pushing up to my dev environment I don't see the variables in the dev CP even though I see them on the dev server in the _vars directory. Because of this the variables aren't rendering. I even tried creating a variable directly in the CP and there's no file generated in the designated folder. Thoughts on what could be happening here?


texts: ERR_CONTENT_DECODING_FAILED when creating template route for specific entry

texts:
I have 3 templates in a template group

Template Group

/customer-service
/customer-service/expert-tip
/customer-service/expert-tips

I want to use the second template to display specific channel entries like so, with the third segment being an entry ID:

/customer-service/expert-tip/{tip:alpha_dash}

However, when I do this, I can't access any of these templates. They all return an ERR_CONTENT_DECODING_FAILED error in Chrome.

Templates Routes are enabled in my global settings and I also have this expert-tip template set to require all 3 segments.

Any idea what is causing this?

EDIT I've tested the URLs in Firefox, Safari, and Chrome and the template routes work for everything except normal Chrome. Even Incognito Mode works for Chrome.

EDIT2

Message:  preg_match_all(): Compilation failed: group name must start with a non-digit at offset 35
Filename: libraries/Template_router.php
Line Number: 56


texts:
I am about to start work on a client site re-build.

The current site is running EE2. I plan on duplicating the site and then upgrading this duplication to EE3. The EE2 would continue to run as usual, with the re-build built on the duplication.

I am expecting the re-build to take around 3-4 months, in which time the live site will have a selection of new channel entries and members.

I need to find a way to bring over these new channel entries and members to the EE3 re-build site.

During the re-build, I will be modifying some of the existing channels. Some fields are going to be removed, possibly renamed or deleted. I will also be adding new fields.

Does anyone have any ideas if/how this can be done?


texts: How to protect a field from being changed - Profile Edit

texts:
I am using Profile:Edit to display a form which allows the user to update and edit their profile. However I have some custom fields which I want to protect from being changed. I am not displaying these fields to the user, but if the user was to 'hack' the page by manually inserting an input text field into the page they are viewing (using the browsers inspector tool) then they can submit any field they like and profile edit will happily update the value (I have tested this).

How can I stop Profile:Edit from updating any field it receives via POST, and only update values I give it permission to update?

Let me know if you don't get what I mean.


texts: How to display more entries from the same channel, but exclude one already being shown?

texts:
EE 2.6.1

I have a page with a standard channel entries tag as follows:

{exp:channel:entries limit="1" channel="{embed:category}"}

{/exp:channel:entries}

followed by another channel entries tag, which is included as an embedded file:

{exp:channel:entries limit="6" channel="{segment_1}" url_title="not {segment_2}" orderby="random" dynamic="no"}

What I'm trying to do is show further entries from the same channel, but not the entry in the second segment, which is already being shown on the page. So, if I was displaying an entry from the Cakes channel, the 2nd channel entries tag would show a list more more cakes, but not the one being displayed on the main section of the page. The url_titl="not {segment_2}" does not seem to be working.

Any help much appreciated.

Kind regards,

Matt


texts: Can retrieve stash variables inside entry tags, but not outside

texts:
I am trying to set a group of stash variables per an entry and use them in the rest of the site build but I can't 'get' the stash variables from outside the initial channel entries tag.

So something like below in which if I place the  tags inside the closing channel entry tag they will appear, but as they are will not.

{!-- STASH SET --}
{exp:channel:entries
    channel="site_settings"
    limit="1"
    disable="categories|member_data|pagination"
}
    {exp:stash:logo}{company_logo}{/exp:stash:logo}
    {exp:stash:style}{site_appearance_style}{/exp:stash:style}
    {exp:stash:color}{site_color_theme}{/exp:stash:color}
    {exp:stash:phone}{contact_phone_number}{/exp:stash:phone}
    {!-- GRID FIELDS --}
    {contact_e_mail_options}
        {exp:stash:text}{contact_e_mail_options:display_text}{/exp:stash:text}
        {exp:stash:email}{contact_e_mail_options:e_mail_address}{/exp:stash:email}
        {exp:stash:subject}{contact_e_mail_options:e_mail_subject}{/exp:stash:subject}
    {/contact_e_mail_options}
    {social_media_accounts}
        {exp:stash:facebook}{social_media_accounts:facebook}{/exp:stash:facebook}
        {exp:stash:twitter}{social_media_accounts:twitter}{/exp:stash:twitter}
        {exp:stash:linkedin}{social_media_accounts:linkedin}{/exp:stash:linkedin}
    {/social_media_accounts}
    {physical_address}
        {exp:stash:street}{physical_address:street}{/exp:stash:street}
        {exp:stash:city}{physical_address:city}{/exp:stash:city}
        {exp:stash:state}{physical_address:state}{/exp:stash:state}
        {exp:stash:country}{physical_address:country}{/exp:stash:country}
        {exp:stash:zip}{physical_address:postal_code}{/exp:stash:zip}
    {/physical_address}
{/exp:channel:entries}
{!-- /STASH SET --}

{exp:stash:logo}

{exp:stash:style}

{exp:stash:color}

{exp:stash:phone}

{exp:stash:text}

{exp:stash:email}

{exp:stash:subject}

{exp:stash:facebook}

{exp:stash:twitter}

{exp:stash:linkedin}

{exp:stash:street}

{exp:stash:city}

{exp:stash:state}

{exp:stash:country}

{exp:stash:zip}


texts: Show different content based on url segement

texts:
Sorry if my title is a little confusing. Here is my dilemma...

I have a product category page with different products. I'm trying to figure out a way to say {if segment_3} show the product specific information. Right now I'm having no luck. I'm new to EE, so I'm sure some of you vets this will be easy. Here is my code so far.

    {exp:channel:entries channel="products" category="1" limit="15"}

{title}

                    {short_description}

                        View Product

    {/exp:channel:entries}

{if segment_3}
{embed="products/product-detail"}
{/if}


texts: Expression Engine + Solspace Rating Module - "Vote Up" a customer review

texts:
Can you vote 'up' a review using Solspace Rating so that it'd do something like:

'5 out of 8 people found this review useful'

I've had a good look through the docs but don't see anything like this...

Thanks.


texts: Migrating existing field data to Channel Videos – anyone out there tried this?

texts:
I'm looking to programatically migrate about 400 instances of "Video Player" field data to Channel Videos. All I have to work with is the Youtube/Vimeo video URLs. Wondering if anybody has attempted to do this or knows a clever way it could be done?

(Initial research has me thinking I could leverage ajax.channel_videos or an ACT url and write a script that sequences calls to the APIs using an existing hook.)


texts: Passing Transcribe variables to Freeform placeholder

texts:
I'm trying to pass a set a language variables into a respective set of Freeform generated inputs.

The obvious way to do it would be:

    {exp:transcribe:replace name='contact_name'}
    {freeform:field:first_name attr:class="textinput" attr:placeholder="{exp:transcribe:replace name='contact_name'}"}

    {exp:transcribe:replace name='contact_email'}
    {freeform:field:email attr:class="textinput" attr:placeholder="{exp:transcribe:replace name='contact_email'}"}

    {exp:transcribe:replace name='contact_message'}
    {freeform:field:user_message attr:class="textarea" attr:placeholder="{exp:transcribe:replace name='contact_message'}"}

This results in the Label displaying the correct language variable as set by Transcribe. However the same language variables don't get parsed in the  Freeform's attribute placeholder.

I've tried to stash:embed the contact form and pass the variables from the originating template.

{stash:embed
    name="snippets:contact-form"
    process="end"
    parse_depth="1"
    stash:cntct_name="{exp:transcribe:replace name='contact_name'}"
    stash:cntct_email="{exp:transcribe:replace name='contact_email'}"
    stash:cntct_msg="{exp:transcribe:replace name='contact_message'}"}

And in the embed:

    {stash:cntct_name}
    {freeform:field:first_name attr:class="textinput" attr:placeholder="{stash:cntct_name}"}

    {stash:cntct_email}
    {freeform:field:email attr:class="textinput" attr:placeholder="{stash:cntct_email}"}

    {stash:cntct_msg}
    {freeform:field:user_message attr:class="textarea" attr:placeholder="{stash:cntct_msg}"}

And still the FreeForm labels display the correct language variables. But the placeholder attributes are not getting generated, at all. Static text, though, does work.

Any ideas?


texts: Using Stash to get data from 1 of 2 fields

texts:
I'm currently using a template that displays an entry that could come from one of two channels like so;

{exp:channel:entries
    channel="channel1|channel2"
    status="open"
    limit="1"
    require_entry="yes"
}
    {exp:stash:set parse_tags="yes" parse_depth="3" save="yes" scope="site"}
        {stash:place_shortdesc}{cf_channel1_shortdescription}{cf_channel2_shortdescription}{/stash:place_shortdesc}
        {stash:place_desc}{cf_channel1_description}{cf_channel2_description}{/stash:place_desc}
    {/exp:stash:set}
{/exp:channel:entries}

I'm using Stash to create the variables, for example {stash:place_shortdesc} where the short description could come from 1 of 2 fields, depending on which channel the current entry is from.

I was wondering if this is the best way to approach this, particularly for performance? or whether it needs something like conditional loading of fields based on channel?

Thanks.


texts: Show Latest Channel Entries Under Single Entrey

texts:
I'm trying to show the latest 5 entries in a channel, when a user views an entry within the channel.

At the moment, the code will only show the info for the single entry in both sections. My code is below;

{exp:channel:entries
    channel="news"
    require_entry="yes"
}

{title}

        {body}
{/exp:channel:entries}

Top News

{exp:channel:entries
    channel="news"
    orderby="entry_date"
    sort="desc"
    limit="5"
}

{title}

{excerpt}

{/exp:channel:entries}


texts: Stash with timestamps and custom written module

texts:
I'm having a difficult time figuring this out.

There's a section in a website with events. Visitors can vote for these events, 24 hours before and after it happens. Longer before that, it has a 'attend'-button. Afterwards, it shows the average score.

As I always do, I use Croxton's stash plugin. This section, ofcourse, shouldn't be stashed.

So, at first, I had this:

  {if {current_time format="%U"} - {event_time format="%U"} < -86400}
    {facebook_link}
  {/if}
  {if {current_time format="%U"} - {event_time format="%U"} < 86400 && {current_time format="%U"} - {event_time format="%U"} > -86400}

Voting open

  {/if}
  {if {current_time format="%U"} - {event_time format="%U"} > 86400}

{exp:bol_voting:stats entry="{event_id}"}

  {/if}

Now, ofcourse, because these sections get stashed, the time-checks don't matter. If we reach the time-frame in which people can vote, nothing will happen. Also, the eventual average score returned by bol_voting will be stashed.

I didn't want that, so I wrapped it in a {stash:nocache} wrapper. All my variables, as well as my custom bol_voting module, don't get parsed anymore (event_time and facebook_link).

Anyone can save me here?

Thanks!


texts: Freeform Pro check form submitted on same page return

texts:
Is it possible within Freeform Pro to set the return path of a form to the current page (ie. if the form is in the template "contact/index", set return="contact/index") and then when it loads the page again and parses the Freeform tag, it runs a check to see if it was sent successfully and display a message and possibly prevent the form from being displayed.

Essentially, I'm looking for the same functionality as you would get with a normal PHP check such as if($mail) { echo 'Success'; // hide form } else { echo 'Error'; // display form }

Can I do this with native EE/Freeform tags or would I have to build something in PHP? If the case is the latter, how would I check it?

Using EE 2.5.2 with Freeform Pro 4.0.12.


texts:
Just wondering how I can get to order products in Expresso Store by Price (High to Low and Low to High) using a drop down.

I've got sort working by using Dynamic Parameters but can't work out how to do this with Price?