texts:
I have two weird scenarios concerning index.php  in my url.
For the most part, it is removed from the url.
The two times when index.php reappears in the url is in form return.
I'm using Freeform Pro.

My form code:

{exp:freeform:form
   form_id="5"
   form:id="freeform"
   require_ip="yes"
   prevent_duplicate_on="email"
   return="/template_group/template/review/%%entry_id%%"
}

My .htaccess code:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_URI} !^/system [NC]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.+)/$ /$1 [R=301,L,QSA]
  #
  RewriteCond %{QUERY_STRING} ^(ACT=.*)$ [NC,OR]
  RewriteCond %{QUERY_STRING} ^(URL=.*)$ [NC,OR]
  RewriteCond %{QUERY_STRING} ^(CSS=.*)$ [NC]
  RewriteRule ^(.*)$ /index.php\?&%{QUERY_STRING} [L]
  #
  RewriteCond $1 !^(images|assets|bootstrap|system|upd|themes|index\.php|admin\.php) [NC]
  RewriteRule ^(.*)$ /index.php/$1 [L]
  #
  RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]\
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php/$1 [L]
  #
  #------------------- index.php -------------------
  #strip index.php/* from the URL
  RewriteCond %{THE_REQUEST} ^[^/]*/index\.php/ [NC]
  #RewriteRule ^index\.php/(.+) http://%{HTTP_HOST}/$1 [R=301,L,QSA]
</IfModule>

I commented out the 2nd to last line of the .htaccess code recently because it was preventing FreeMember's "forgot password" code to work.

Any help would be appreciated as I'm not a pro with .htaccess (I know, ).

Thanks!

Peter T


texts: How can I check if a playa field is empty?

texts:
I have a playa field product_videos and am using the following conditional to check if it is empty:

{if product_videos:total_children > 0}
  //do something
{/if}

This seems pretty straight forward to me, what am I missing?

I should add the result is that the code inside the conditional never appears despite there being entries.

I have also tried:

{if "{exp:playa:total_children field='product_videos'}"}
  //do something
{/if}

which is listed as a correct answer in this SO question, this results in a php error:

  A PHP Error was encountered Severity: User Warning

  Message: Invalid EE Conditional Variable: {if
  "exp:playa:total_children entry_id="285" field='product_videos'
  var_prefix="playaDbig9XJo"}

  Filename: libraries/Functions.php

  Line Number: 2855


texts: the search field in EE's dashboard doesn't seem to find anything. what is this field supposed to search?


texts:
I have a chain of embeds in Stash:

A "main" template that embeds {stash:embed name="foo:.index"}
foo:.index has 1 line of code: {stash:embed name="common:.serp" stash:group_id="6" stash:channel_name="members" stash:permalink_parameter="foo/details"}
common:.serp has something like this:

{exp:stash:set parse_tags="yes"}
   {stash:channel_entries}
      {exp:channel:entries channel="{stash:channel_name}" dynamic="no" group_id="{stash:group_id}" limit="10" orderby="date" paginate="bottom" sort="desc"}
       ...
       ...
       {stash:embed name="common:.avatar"}

In common:.avatar, I am trying to access the value of {member_images:total_rows}. However, it's just echoed as that tag and not the number I expect it to be. I have verified this field exists in the Channel fields (it's a Matrix field).

I'm a bit confused with EE's parse order. And I've tried putting process="start" where I embed common:.avatar hoping it would parse {member_images:total_rows}. No go. Any ideas what's wrong?


texts: Easy creation of new file upload directory per entry instead of per channel?

texts:
I want to know if there is a way to create unique file upload directories that are assigned PER ENTRY, instead of assigned to a channel?

I have a channel named "Projects" and each entry will have a slideshow of images. There are a LOT of entries in this channel, which means a LOT of images... and I'm worried about naming conflicts, organization, and ultimately confusing my users.

I realize I could just create a new folder and choose to upload images there when creating an entry, but this is too complicated to expect my users to do when they are creating entries.

Is there a way to create the upload directory on the fly and assign it to the entry?  I need some way of organizing things so that each entry has a unique folder for uploads.


texts:
I'm wanting to update my site (which has blogs for me, my wife, our dogs as well as discussion forums on home cheese making and extensive image galleries on wild mushrooms and wildflowers of Colorado high country) to EE2.x.

I've tested this update offline and I think most of it will go well. We'll lose some functionality, but I've found replacements or can do without. (Still looking for an "on this day" replacement, see my other post.)

My biggest concern is the loss of the Image Gallery in EE2.x. I have many hundreds of photos archived in three galleries, most with meaningful titles, descriptions and even comments. This gallery has been the source of photos published in books on mushrooms and wildflowers because the images are well documented and easy to find.

Sure, I could migrate all of the photos to Flickr or maintain them natively in EE with Matrix, but that would mean manually moving hundreds and hundreds of photos and duplicating titles and descriptions, and likely losing the valuable comments.

So, I am wondering if there is a way to keep my EE1.x gallery "live" and available, while also moving the blogs to EE2.x.

Here is my thinking: create a new database and migrate EE1.x to that database and upgrade to EE2.x. Have my "main" site be EE2.x driven, but provide links to the old blog galleries still running under EE1.x.

Has anyone tried anything like this and what would you suggest as the way to manage the two sides in a single domain? (Root-level directory structure, how to set up index and path files, etc.?)

Of course, all this would be unnecessary if there was Image Gallery support in EE2.x. And, it has been rumored for a long time. Anyone know anything about that possibility?


texts: SafeCracker - display radio and checkbox? set class in ? wrap hidden fields in ?

texts:
My Channel has radios and checkboxes. How to I loop through the options so that I can display each item as a radio/checkbox option in the mark up? The example I found doesn't make much sense to me:

{if radio}
     {options}
          <label class="checkbox">{option_value}
          <input type="radio" id="{field_name}" name="{field_name}" value="{option_value}"{checked}>
          </label>
     {/options}
{/if}

SafeCracker outputs a bunch of hidden fields in a div.hiddenFields. It should be in a <fieldset> if it's going to pass validation. Is there a way to make them appear in a fieldset?
I'd like to set a class in the <form> tag produced by SafeCracker. Is there a way to do that?
How do I display the field value for text, textarea, radio, checkbox, etc? I'd like to display them when the form loads if the values previously exist. And when user submits a form with bad values, I'd like to display the submitted values when the error page is displayed.

EDIT 1:
My first question is solved, I think:

{options:gender}
    <label for="{option_value}">
        <input type="radio" name="gender" value="{option_value}" id="{option_value}">
        {option_value}
    </label>
{/options:gender}


texts: Issue with Channel Images on local setup

texts:
We've taken over a site and I've set up a copy on my local setup mostly successfully. The problem I'm having is getting the following PHP errors:

Severity: Notice
Message: Undefined property: Channel_images_model::$LOCS
Filename: models/channel_images_model.php
Line Number: 568

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /my/path/to/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408

This is on EE 2.7.2 and Channel Images 5.4.8.

I've looked at permissions - they're all correct. I'm able to get into EE just fine, as well as the Channel Images module. However, if I try to regenerate images, nothing happens.

Not sure what to try next. I've been waiting to hear from DevDemon support for over a week. :/


texts: Images in Assets with .JPG (in capital letters) file extension don't appear in editor

texts:
I had a client run into trouble uploading an image in Assets and then trying to drop it in to the WYSIWYG editor. If the file had a .JPG extension — in capital letters — the image would only appear as a file link in the editor.

Lowercasing the file extension allowed the image to drop into the editor as expected.

See: http://than.to/io3


texts: Recommend way to start a php session in an EE module?

texts:
What is the recommended way to start a php session in an EE module.

I am using EE 2.9.4 and have a custom module. In the constructor I call session_start(). When I look at the cookie that gets created the cookie path is wrong. It is set to the path of the page instead of "/".

When I call session_start in a plain php app the default behavior of session_start is to set the cookie path at root "/".


texts: I uploaded an image in the file manager, when I edit my channel entry and use the image icon inside of the wygwam editor window i find the file and it previews correctly. I add it to the page and everything appears normal. When I save the entry it does not show up on the live page. Then when i go back to check and edit the entry again I see the broken image symbol and the source is set to {ci_image}


texts: Group Low Search results by channel/collection?

texts:
I know I can make collections and search one or more of them using Low Search. If I understand correctly, the results I get back will be ordered by relevance. But what if I have several channels that I want to show in different lists on the search results page? Is it possible to group the results by channel? Within each group I would still like the most relevant results first.

To clarify my intention, my results page would have a few headings like 'people', 'news' and 'pages'. The people section would present the found entries from the 'people' channel with their picture, email address etc. while the news and pages entries would have their own look as well.


texts: Delete Assets input fields in a front-end form

texts:
I have the following in a Zoo Visitor Update form:

Performer / Band Photo

    <input type="hidden" name="member_photo[]" value="0"/>

    {member_photo}
<input type="hidden" name="member_photo[]" value="{file_id}"/> (To delete this just remove the hidden input for this image)
{/member_photo}

<input type="file" name="member_photo[]" id="member_photo" multiple>

    <input type="hidden" name="member_photo_filedir" value="8">

I need users to be able to remove images as well as adding new ones.

As per the bracketed comment, P&T have suggested that in order to remove the input I need something like a 'delete' checkbox that toggles the name of the input but this is beyond my limited js-fu and will no doubt be useful to others too.

Any jquery ninjas able to offer up a solution?


texts: Admin control panel access behind firewall

texts:
The company is extremely concerned with security. There is a lot of sensitive data on the servers and this is understandable. What I struggle with is getting many of the addons to operate properly, as well as some core functionality due to this setup. I have no control over the setup so I need to try and figure a way of configuring EE to comply.

The setup is as follows:

Admin is contained on a sub-domain of the primary site and sits behind a firewall. So an example would be something like CP Access and System files are at http://admin.eesite.com and the public site is at http://www.eesite.com

The public site is open to the world. The admin is behind a firewall in which you must be connected to the internal network before you have access.

Most things function as they should, but this has proven to be an extremely problematic setup for using add-ons, and tiresome for performing updates, etc. because it is an MSM install and each leg of the site has this same setting for each segment.

Most of the problem I run into are 403 or standard 500 errors. Everything is hosted on windows servers via IIS7.

I am running EE 2.7.2


texts:
is it possible to total count grid from many entries?

Lets say, i have 3 channel entries. Channel 1 entry 1 has 3 grid entries, channel 1 entry 2 has 5 grid entries, channel 1 entry 3 has 7 grid entries.

The result should be 15. Also show beside the grid entries the number 1, 2, 3, ... 15

Thanks


texts: Hook to add a new column in control panel

texts:
For an extension I would like to add an extra column in the cp's entries overview. I have searched for a hook I could use for this, but could not find anything.

I could use Zenbu, but that is a bit too much for what I want. In EE1 there was a hook available. Have I missed the hook for EE2 or is there another way to accomplish this?


texts: I have a channel that I don't want searchable, however suggestive search results containing entry titles for this channel still appear. I'm using Super Search 2.04 and EE 2.5.2. I know that you can easily disable searching on custom channel fields but I need to disable searching for the entry titles of this channel. Further I thought that changing all entries to status closed might resolve it but it does not. Any tips or suggestions would be greatly appreciated!


texts: P&T Assets: thumbs folder file permissions

texts:
Looks like Assets, when creating the "_thumbs" folder... is using "666" permissions... This is creating an issue with being able to access files through my standard sftp account. Unless the file is 777 I cannot touch it.

Is there a reason the "_thumbs" is not 777 ? Is this a bug possibly?


texts: Displaying member custom_profile_data on front end of site won't work

texts:
{exp:member:custom_profile_data member_id='{member_id}'}{full_name}{/exp:member:custom_profile_data}

The code above doesn't show anything. if I change the {member_id} global variable to a number it does work. Why isn't it working when the variable is in there? {member_id} displays correctly when used outside of the tag.


texts: Redirect - Even though redirect code is absolute its handled as relative

texts:
On my search results page I am testing to see if there is only one result and if so redirecting the user to that result page using the redirect tag.

However, even though the path I am redirecting to is absolute it seems to be handled as relative.

For example - the path I am redirecting to:

http://myurl.com/path/to/page

Once the redirect is complete the address bar shows:

http://myurl.com/http://myurl.com/path/to/page

This does still show the right page content, but clearly isn't the right URL.

The code i am using is:

{redirect="{url_title_path='store/product'}"}.

When placed into a template alone {url_title_path='store/product'} writes out myurl.com/path/to/page and indeed this very same tag works perfectly when applied to an anchor (a) tag.

Any advise on how to resolve this much appreciated.


texts: Any ideas on how to create a 'find properties near me' feature on EE?

texts:
I'm working on an estate agents website and am looking to create a 'find properties near me' feature.

Any ideas on how I might do this will be gratefully received!

Thanks in advance,

Tom


texts: Can't update an entry using Channel API without including title

texts:
I'm trying to update a channel entry using the Channel API function save_entry.

ee()->load->library('api');
ee()->api->instantiate('channel_entries');

// Create input array
$data = array('field_id_'.$this->helper->get_field_id('booking_user') => $member_relationship);

// Update booking entry
$booking = ee()->api_channel_entries->save_entry($data, $this->channel, $booking_id);

This is my code and it's giving back this error

[29-May-2014 14:53:51 UTC] array(2) {
  ["title"]=>
  string(13) "missing_title"
  ["url_title"]=>
  string(26) "unable_to_create_url_title"
}

I don't want to update the title because it doesn't need to be changed.

My question is how can I update a channel entry without including a title?


texts: Stash saving on :get and :set performance benefits?

texts:
I'm still trying to fully wrap my brain around Stash's cacheing system.

From the docs it seems that both :set and :get have the parameters save, scope, replace, and refresh.

Is there a benefit to using both?

I had thought that perhaps saving on set could be used to store raw data and saving on get could be used to store formatted data. So for example:

{exp:stash:set_list name="products" parse_tags="yes"
 save="yes" refresh="60" replace="no" scope="site"}
    {exp:low_variables:pair var="lv_products"}
        {stash:prod_image}{image}{/stash:prod_image}
        {stash:prod_url}{link}{/stash:prod_url}
        {stash:prod_title}{link_title}{/stash:prod_title}
    {/exp:low_variables:pair}
{/exp:stash:set_list}

And then:

{exp:stash:get_list:nested name="products"
 save="yes" refresh="60" replace="no" scope="site"}
{if count == 1}
{/if}

{other_prod_image} {other_prod_title}

{/if count == total_results}
{/if}
{/exp:stash:get_list:nested}

In a more "real world" example. I have a rather complex drop-down navigation that is built off nav:ee but includes low variables with playa, and matrix to create "mega-dropdowns" I stash each bit of data individually, but then also tried to stash the entire generated menu with the page uri as a context.

Is this a correct/beneficial "layered caching" approach? Or am I missing something here? :)


texts: How can I prevent all entries from being listed with an arbitrary url?

texts:
This is quite a basic question I think, but when viewing a template with entries with the standard entries tag:

{exp:channel:entries channel="mywebsite"}

and if I replace the last segment with arbitrary letters, it will show all entries from that channel, like:

www.somewebsite.com/mytemplategroup/sdjhkkajsd

In a page with regular entries I can avoid this by using  entry_id=segment_2, but this doesn't work when viewing a category with category titles enabled:

http://www.somewebsite.com/mytemplategroup/category_template/category/category_url_title

Replacing category_url_title with "lzdsfuhkhjfdg" shows ALL entries from the channel. I can't prevent this in the entries tag with

 {exp:channel:entries channel="mywebsite" category_url_title="segment_4"}

Because that is not supported. So how would you solve this?

Thank you very much!


texts:
We are having an issue where WYGWAM fields are disappearing on initialization of the js in the Edit Entry screen in the control panel. This is only for IE8 and IE9; other browsers work fine. This behavior is consistent whether we let the fields initialize on load or if we initialize on focus (in which case, the field's content loads and is visible, but disappears on click).

The channel contains a series of Matrix fields, including WYGWAM, Assets, and Playa fields. We are running an install of EE2.5.5, Matrix 2.5.3, Playa 4.3.3, and Assets 2.0.5.

In the browser console, we are seeing the following two errors:

Not enough storage to complete this operation. ckeditor.js, Line 13
Object doesn't support this property or method. compressed.js; Code: 0; Line 39.

Note, turning off nsm_morphine_theme where the compressed.js code resides eliminates the second js error, but does not resolve the issue above.

Here is a screen shot per Lisa Wess' request below. It is the Text field which has the Wygwam field type; the other empty fields simply do not have data entered in them.

------------------------------- UPDATE -------------------------------

There are two issues, both of which appear to be related to upgrading to Assets 2.

First, on upgrading we have the same issue as this:
Clicking on folders in the Assets 2 file manager does not work on IE8.

Applying the hack Kevin Lees suggests takes care of the issue where the Assets 2 dialog box will not allow the user to select items from the popup.

The second, original issue -- that the Wygwam fields are not instantiating -- appears to be related to the control panel page making over 31 CSS calls; IE8/9 have a hard limit of 31 CSS calls, ignoring any calls above that number.

I believe this behavior is related to a change in Assets 2, which introduced a number of small, separate style calls in the head. No bid deal, except IE8/9 is counting each against the total. Therefore a page with multiple matrix and assets fields pushes past the 31-call limit.

Short of downgrading to Assets 1, the only fix we've found is to force the user to use Compatibility mode, which doesn't impose the 31-call limit.

I would be curious to hear if anyone else is having this problem or has found a better, long-term solution.


texts: WYGWAM. window size click with no scroll

texts:
I am using WYGWAM 3.3.3 and EE 2.9.3

I have my WYGWAM set to 400pixels resizable.  When I have a long entry when the edit page loads there is a scroll bar in the WYGWAM editor, but as soon as I click in the editor it expands to show the entire entry and the scrolling is gone.

This is a problem because the user has to scroll up to the top to see the editor tools and then cannot see the content they are editing.

HOw do you keep the window at 400px and scrolling even after you click in it?


texts:
I have a site causing me no end of trouble with index.php removal.  It works on one host (EngineHosting) but not on another (Liquid Web).  I have other sites on the same server at Liquid Web using the same htaccess rule that work fine.  By all definition, this should work.  Here's the htaccess:

# EE 404 page for missing pages
ErrorDocument 404 /index.php?/site/404

# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
  ErrorDocument 404 "File Not Found"
</FilesMatch>

#Options +FollowSymlinks
RewriteEngine On
RewriteBase /

# remove the www
RewriteCond %{HTTP_HOST} ^www.sitenameremoved.com$ [NC]
RewriteRule ^(.*)$ http://sitenameremoved.com/$1 [R=301,L]

# Remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$  /$1 [R=301,L]

# Force remove index.php (File and Directory Check)
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

# Remove IE image toolbar
<FilesMatch "\.(html|htm|php)$">
  Header set imagetoolbar "no"
</FilesMatch>

I have tried the RewriteRule with and without a ?, I have ensured that the other rules are working (they are), I have verified that 'Name of your site's index page' is blank, I have removed all other rules and tested, and I have  used this same rule on dozens of other sites.  Here, however, it does not work.

This site is EE2, non MSM.

What can I be missing?


texts: Stopping WYGWAM from assigning dimensions to images

texts:
Is it possible to stop WYGWAM from putting dimensions on images as inline styles. We want the images to be responsive.

Thanks for any advice.


texts: Redirect adding absolute path when using {redirect="{page_url}"}

texts:
I recently upgraded to EE2 2.11.7 and I was using a redirect to automatically redirect user if on search results if there was an exact match.

This was working fine for me previously: {if total_results == 1}{redirect="{page_url}"}{/if}

But now getting error, The URI you submitted is not allowed.. And the URL is adding the absolute path on top of the domain like this: http://example.com/http:/example.com/page/url/entry

I can use some jQuery to fix with a trigger click, but it's kind of clunky. Any way to fix that url to properly redirect?


texts:
I don't think I quite understand from the EE documentation how to upload a file using a Channel Form (previously SafeCracker).

I would like to upload my sermon audio files into the sermons upload path (http://example.com/sermon-files/). The file channel field I have is called {sermon_file}.

Here is the code from the documentation:

<div class="form-group">
    <input type="file" name="my_field_name" />
    <input type="hidden" name="my_field_name_directory" value="1" />
    <input type="hidden" name="my_field_name_hidden_file" value="{my_field_name}{file_name}{/my_field_name}" />
</div><!--/.form-group-->

This assumes that the {exp:channel:form channel="sermons"} tag is before all this code and contains a submit button.

My question is, what the heck do I put in these "my_field_name" placeholders?

Appreciate any help you can offer. Thank you much!


texts: Displaying only one related entry per list

texts:
I'm working on a site which has a series of tours, some of which are related (using playa) for when a tour is available on alternateive dates.

The problem I have is I want to display a list of all the tours, but instead of showing the title, link and date for all of them. If a tour has an alternative date/relationship it displays the title once with the alternative dates listed underneath. So it outputs like this:

Tour title 1
- Date a (links to Tour title 1 page)

Tour title 2
- Date b    (links to Tour title 2 page)
- Date c    (links to Tour title 3 page)
- Date d (links to Tour title 4 page)

Tour title 5
- Date e    (links to Tour title 5 page)
- Date f    (links to Tour title 6 page)

Tour title 7    (links to Tour title 7 page)
- Date g    (links to Tour title 8 page)

If any one could offer any advice I'd appreciate it.
Thanks.

To give a bit more information about the configuration of the channels:

I have a channel for each Tour entry called 'tour', that has all the information about the tour, including date, price etc. There are some tours which might run several times a year, but may have different costs, flights etc, (which is why each has to be an entry in it's own right.) Within the 'tour' channel I have a Playa field {alternative_tour_dates} which lists all the tours. This would be used to 'link' the tours with alternative dates to each other.

This is my template which I want to show all the tours, but with the tours that have multiple dates, rather than displaying each one, it displays the tour that has the earliest date and lists the alternative dates, cost and url of the others.

{exp:channel:entries channel='tour' disable="category_fields|member_data" show_future_entries="yes" orderby="tour_date_start" sort="asc" search:tour_type="tour"}

{tour_name}

Tour Director: {tour_to_tour_personnel}{tour_director_name_first} {tour_director_name_last}
{/tour_to_tour_personnel}

{tour_date_start format="%j %F"} &ndash; {tour_date_end format="%j %F %Y"} &pound;{tour_base_price}

{alternative_tour_dates}{tour_date_start format="%j %F"} &ndash; {tour_date_end format="%j %F %Y"} &pound;{tour_base_price}{/alternative_tour_dates}

{/exp:channel:entries}

Once again thanks for input so far.


texts: Override get_shipping() for "Cartthrob shipping by location price threshold" plugin

texts:
I am using Cartthrob_shipping_by_location_price_threshold plugin for Cartthrob.

What I need is to have a shipping by location price but, sometime I have software products, and this software products has shipping tax 0.

There is a function get_shipping() in the Cartthrob_shipping_by_location_price_threshold class:

public function get_shipping()
{
    $location = '';
    $customer_info = $this->core->cart->customer_info();

    $location_field = $this->plugin_settings('location_field', 'shipping_country_code');
    $backup_location_field = $this->plugin_settings('backup_location_field', 'country_code');
    ........................
 }

And I would like to override this function. One other thing, how can I access a product shipping price? As I see the shipping price field was added from Channel Administration -> Field Editor

    foreach ($this->core->cart->items() as $item)
    {
        print_r($item->..........shipping_price_field?.....);
    }


texts: Moving a forum from development to production

texts:
I've been working on a forum locally and I'm wanting to move it to the live server. I've exported all the db tables and then imported into the live site and added a row to the modules table.

I can see the forum module control panel OK, but when I visit the URL for the forum on the live site, I get a 404. So it seems like I've missed something that needs bringing over. Anyone know what that might be?


texts:
My head is spinning from this. I've got a Matrix field that contains a Playa field. The entries from that Playa field contain another Playa field that we need to get its title value from. I'm not sure how to get that to work.

So the code would go something like this (simplified for demonstration):

{exp:channel:entries}
    {matrix_field_name}
        {playa_field_name limit="3"}
            {separate_playa_field}{title}{/separate_playa_field}
        {/playa_field_name}
    {/matrix_field_name}
{/exp:channel:entries}

My actual code looks something like this:

{exp:channel:entries}
    {wine_styles}
        {suggestions limit="3"}
            {vineyard}{title}{/vineyard}
        {/suggestions}
    {/wine_styles}
{/exp:channel:entries}

Sticking that in a blank test template I end up with something like this:

{playa6YpDIoqY:title}
{playa6YpDIoqY:title}
{playa6YpDIoqY:title}
{/exp:playa:children}

Not sure how to get this to work. I've looked at other discussions here but they seem a bit different (I could be wrong).


texts: Product Method - Order Item Hash in return URL

texts:
Is there a way that you can return a hash of the order line as part of the "Add to basket" button?

For example,

/basket/added/ORDER_ITEM_HASH

Then, it would be great if on the page you can find the order item by this hash and show the user an informative notification rather than a simple "Added to basket" message.

  You have added the Acme 3000 to your basket with the following options:-

  Colour: Red
  Size: Large
  Qty: 4


texts:
I'm in the process of setting up a new member based site. I'm avoiding the Forum module as the templating system is difficult at best to style and many of the functions are overkill for our requirements.

I've found many add-ons that help with PM, user settings, SAEF WYSIWYG, nice dates etc but the one thing I haven't found is just how to show each user the new entries AND new comments since their last visit.

Spitting out a list of entries by last-comment date and by entry-date is fine but I'm really trying to highlight to each user, new info (comments or entries) since their last visit - think of it as "un-read".

Does anyone have any ideas or have done something similar have any pointers on how I can go about achieving this?


texts:
I am using assets for a photo gallery site.

The first page shows the list of images as thumbnails, when you click a thumbnail it loads a page where it just shows the single image (passing the file_id through segment_4).

What I want to do make the large image on this page clickable to go to the next image on it's own page (unique URL).

Can someone tell me if this is possible and if so how i should go about it.

big thanks.


texts:
FreeForm 3.1.4
ExpressionEngine 2.5.5
Build 20121220

Hi There,

When submitting my form, it takes you to the root domain (www.domain.com) and shows a white/blank page. It is not adding the entry to the database either or at least it isn’t showing in the Entries Tab.

I have tried with no .htaccess file
Communicate tab works.

It happens on another form on the same site as well.

Any ideas? See my template code below:

{exp:freeform:form
           collection="Contact Form"
           required="name|email|question"
           return="/contact/thank-you"
           notify="mark@domain.com"
           template="contact"
        }

            Name:
            <input type="text" name="name" class="txtbox" />

            Email:
            <input type="text" name="email" class="txtbox" />

            How did you hear about us?
            <select name="how_hear" />
                <option value="Please Select">Please Select</option>
                <option value="Word of mouth">Word of mouth</option>
                <option value="Search engine">Search engine</option>
                <option value="Online school listing">Online school listing</option>
                <option value="Facebook">Facebook</option>
                <option value="Twitter">Twitter</option>
                <option value="Press">Press</option>
                <option value="Banners">Banners</option>
                <option value="School minibus">School minibus</option>
                <option value="Toddler class">Toddler class</option>
                <option value="Other">Other</option>
            </select>

            If other, please specify:
            <input type="text" name="other" class="txtbox" />

            Questions or Comments:
            <textarea name="question"></textarea>

<input type="submit" id="submit" name="submit" value="Submit" />

        {/exp:freeform:form}

Many thanks


texts: Store module: How to update product modifier from the cart page?

texts:
This is sort of related to Store module: How to update cart quantity without submitting the cart? but I don't want to update that question b/c it is still relevant to other people. It turns out my issue is that our store uses price modifiers for the "quantity." So people order 1 item, but it might come in 500, 1000, 1500, or 2000. Instead of changing the item_qty field on the cart page, I need to be able to change a price modifier instead. This is what my template  looks like thus far, and it sort of works, but instead of updating the existing item it just adds an entirely new item to the cart.

A simplified version of my cart template:

{exp:store:checkout next="cart/confirm" return="cart/ORDER_HASH"}
    {!-- This seems to be the only way to get the full list of available
    modifiers in this tag :( --}
    {modifiers}
        {if modifier_name == "Quantity" OR modifier_name == "quantity"}
            {embed="cart/_product-modifiers"
                entry_id="{entry_id}"
                key="{key}"
                option_id="{option_id}"
                modifier_id="{modifier_id}"}
        {/if}
    {/modifiers}

    {!-- Quantity is determined by the modifier since its a fixed amount, so set to 1
    here so the product is actually added to the cart --}
    <input type="hidden" name="item_qty[{key}]" value="1" />

    <button type="submit" name="update_cart" class="item-quantity-update" value="Update Cart">Update Cart</button>
{/exp:store:checkout}

And the cart/_product-modifiers template to render this dropdown http://cl.ly/image/0e0Q0q391I0s:

{exp:store:product entry_id="{embed:entry_id}"}

    {modifiers}
        <select name="item[{embed:key}][modifiers_{embed:modifier_id}]">
            {modifier_options}
                <option value="{option_id}" {if "{embed:option_id}" == "{option_id}"}selected="selected"{/if}>{option_name}</option>
            {/modifier_options}
        </select>
    {/modifiers}

{/exp:store:product}


texts: How to handle 404 with segment_2 misspelling

texts:
How do I handle a 404 redirect when let's say I have a template group called "about" and a template in that group called "leadership" but someone types about/leaderships instead of about/leadership?

Thanks.


texts: How do i search for a specific username by id

texts:
i am trying to find out how to search the cms database for a specific users username based on their user id and not based on logged in.

Any documentation links or advice would be great, have tried using various ways but ultimately i think query is the way but i am unsure of how to find a specific users username.

i have tried this but i need to do this using the ee() classes in some way as i cannoe seem to define a php variable with the following :

{exp:query sql="SELECT screen_name FROM exp_members WHERE member_id = '1' "}
        {screen_name}
{/exp:query}

please advise and many thanks!


texts:
I am using simple search tag in EE, and for some reason, the search results don't show pages in which the search term is in Matrix fields. I do have those fields set to searchable in Matrix so I am very confused.

Here is my EE template form structure:

{exp:search:simple_form channel="disability_topics2" search_in="everywhere" result_page="/search" status="not closed" where="all" show_expired="yes" show_future_entries="yes"}
Search Site:

{/exp:search:simple_form}

What can I do?

In the entry publish page I have a Wygwam field for the "main page content" and then a Matrix field with two text areas (which are set to searchable). However, when I do a search, it will pull up entries with search terms in the "main page content" field, but not the Matrix field.

I hope that makes sense.

Thanks!

Michael


texts: How to get just the image file name from a file field?

texts:
I'm setting up an xml page in which I need to have just the file name of an image from a file upload field. What I currently have is:

<picture>
    {exp:xml_encode}{image}{/exp:xml_encode}
</picture>

but what this results in is:

<picture>
http://domain.com/uploads/images/11-january-006.jpg
</picture>

When what I only need is 11-january-006.jpg

any ideas on the best approach for this?


texts: Editor plugin corrupting inline styles when saved to the database

texts:
Whenever I save content in Editor, and the content contains elements with inline styles, the attribute is corrupted. For example:

This is a test

When this is saved, the folllowing is added to the database

This is a test

As you can see, the inline style attribute has been corrupted? This occurs whenever the content is saved


texts:
I have some channels on a site, with some of the channels making up the main navigation for the site.

Each top level navigation item needs an image, a short description, and a different title than the channel name.

Been looking for a plugin to add custom data to the channel itself, but I keep coming up short.

I might be missing an obvious way to do this, or maybe I just can't find the right module.


texts: {exp:channel:form} class param not working

texts:
I have this code

{exp:channel:form
  channel="foo"
  class="form-horizontal"
                ....
}

But I don’t see the class “form-horizontal” on my form


texts: How to edit channel entries in expression engine depending on the order they are displayed

texts:
I am exporting news articles into a page using channel entries in expression engine. I want the first article that appears to be 'col-md-4' the next 2 articles to be within 'col-md-3' the next 2 to be within 'col-md-3' and the last 3 articles to be within a 'col-md-2' container.

I have tried various ways to do this. I thought I had worked it out with the code below by editing the entries using an {if:else} statement and using the {count} variable. Although I realised I was selecting the entrie with that ID for example {count == 1} was the article with ID 1, not the first article to appear on the page.

Does anyone know how I can edit an article depending on the order it appears on the page?

 {exp:channel:entries channel="news|blogs" limit="8" dynamic="no"}

            {if count == 1}

                        {if news_thumbnail == ""}

                        {if:else}

                        {/if}

{title}

{news_tagline}

                        {entry_date format="%d"}
                        {entry_date format="%M"}
                        {entry_date format="%Y"}

            {if:elseif count == 2 || count == 3 || count == 4 || count == 5}

                        {if news_thumbnail == ""}

                        {if:else}

                        {/if}

{title}

                        {entry_date format="%d"}
                        {entry_date format="%M"}
                        {entry_date format="%Y"}

            {if:elseif count == 6 || count == 7 || count == 8}

{title}

{news_tagline}

                        {entry_date format="%d"}
                        {entry_date format="%M"}
                        {entry_date format="%Y"}

            {/if}

            {/exp:channel:entries}


texts:
I have some more questions and I hope I don't waste your time .. I use EE3.4.7. and Calendar (EE3 version) .. this questions continues from here Custom field as a parameter

Since custom field searching is not possible with calendar:events my problem is this: I would like to give the opportunity to user to search for events in a city in certain dates. Now the city can be either a text field or a category, and at the moment I have a category group with events categories (music, theatre, cinema etc.) Should I create another group with cities?
Can the city be a Stash variable or Low variable in a search form? Can it work that way?
Also, can Calendar work in combination with Tag? For example can the city be a Tag field?
Can I make searches with sql queries on the database tables to solve the above problem?
In the end would custom field searching be available as a custom solution and what would be that cost?


texts: Control Panel - weird error after creating user through zoo

texts:
I am experiencing some weird bugs over the past day or so. Basically we are using Zoo Visitor to allow some of our team to create users without having access to the Members section of the CP, for obvious security reasons, but each time they create a new account over the past day or so, this error is being thrown:

  ExpressionEngine - An unknown error has occurred when sending email with your server.

This same error comes up when trying to update a user's member group. I've run a few searches and I can't find anything that has changed over the past day, but if I knew what caused this error it may be easier to debug properly.


texts:
We seem to be having some problems limiting within an embed.

2 Channels:  Daily-Deals (approx 50 listings), Business-Listing (approx 10,000 listings).

Each daily deal is related to a single business on field: "deal-owner".

Each business is categorized in a "zone" (category URL corresponds to the template group URL). ie: business is categorized to the zone "Rapid City" (category URL is "rapid-city")

The template structure is as follows:  www.website.com/rapid-city/restaurants

Step 1 - Identify all the daily deals that have content in the field "monday-deal".  Pass these business ids to the embed. (Identifies 26 records)

{exp:channel:entries channel="daily-deals" search:monday-deal="not IS_EMPTY"}
{embed="rapid-city/deal-embed" deals="{deal-owner status="Super Enhanced|Enhanced|Basic"}{entry_id}{/deal-owner}"}
{/exp:channel:entries}

Step 2 - In this embed, take the passed ids and filter to identify only those businesses that have the matching category as the segment_1 category id (in this case when viewing the rapid-city/restaurants template, it would only show the deals from the businesses that are categorized as "Rapid City") (filters down to 21 records)

Step 3 - Then display the deal information (from daily-deal) and the business title, city and state (from business listing).

{exp:channel:entries entry_id="{embed:deals}" channel="business-listing" category="{segment_1_category_id}" status="Super Enhanced|Enhanced|Basic"}
{exp:playa:parents channel="daily-deals"}{monday-deal}{/exp:playa:parents} - {title} - {city},{state-short}

{/exp:channel:entries}

Using this code, in step 1, it correctly identifies the 26 records that have "monday-deal" content.

In Step 2 it filters the 26 records and returns only the 21 that have a matching category selection (business category URL matches rapid-city from segment_1)

In step 3, it correctly displays the monday-deal for each of the 21 businesses and the business title, city and state.

BUT, we want to limit the output display within the template to 6 entries!

IF we put limit="6" in the outer template (or use other conditional strategies), it only passes 6 ids (of the possible 26) to the embed. Thus when the embed processes the records, it may be removing some of the 5 that should not be there - resulting in the display of a random number of entries from 1-6.

{exp:channel:entries channel="daily-deals" search:monday-deal="not IS_EMPTY" limit="6"}
{embed="rapid-city/deal-embed" deals="{deal-owner status="Super Enhanced|Enhanced|Basic"}{entry_id}{/deal-owner}"}
{/exp:channel:entries}

IF we put limit="6" within the code of the embed - it does nothing (all 21 records are displayed!)

{exp:channel:entries entry_id="{embed:deals}" channel="business-listing" category="{segment_1_category_id}" status="Super Enhanced|Enhanced|Basic" limit="6"}
{exp:playa:parents channel="daily-deals"}{monday-deal}{/exp:playa:parents} - {title} - {city},{state-short}

{/exp:channel:entries}

HOW can we use this process to identify all the records that meet the criteria - and always display only 6 records of the 21 possible?


texts: I think I have a permissions problem on an EE site - no Extensions will be installed - they remain "Disabled"

texts:
I have set all permissions to 777 on all folders and files specified by this article: http://ellislab.com/expressionengine/user-guide/operations/moving.html

I uploaded a new Extension to the new site. It currently says "Disabled", so I click to Enable. It gives me the option to Install a Module and an Extension, I choose to install both.

The page reloads - and the extension remains disabled.

I have tried making the /system/expressionengine/third_party/extension_name/ folder 777 (and all subfiles) but it makes no difference.

Any ideas?


texts: How can I search channel entries based on related entries, when search:field_name= doesn't apply to those fields?

texts: I want to display all entries from a specific channel that has a specific related entry tied to it. But search:field_name= doesn't apply.


texts: Development: how to know current site selected in Control Panel

texts:
I'm developing a custom extension that should work also in Control Panel.
In an EE MSM environment I need to know which site is selected (site_id).
Is there any variabile?

I can't find anything in EE Development Doc.


texts: Store - Bug, updating modifier name disables field_name:price?

texts:
I have some products setup in Store with a variation modifier.

In the options column if I edit option values it seems to stop prices from displaying in the templates, unless I save the entry twice, and then it displays!

So in my store entry I have a product with these values in the options fields:

Basic
Complete: basic product + addon

And on my shop index template i am using this tag (which i'm assuming displays the based price without modifiers):
{cf_shop_product_details:price_inc_tax}

When i save the entry, no price shows up in the template.  If i resave the entry (making no changes), the base price then shows!

EE 2.4.0
Store 1.6.3

edit: I've found that if i edit the modifiers, i have to click on the stock field (the names then update there too) in order to make the tag display correctly.  Opening the entry again have the same effect of making the stock field update.


texts: CE Cache and url_override value - possible to use/get a dynamic URL with Stash?

texts:
I have a situation where we need to cache a page unique to a location ID that is set to the member. This is a product listing page where there is an inventory lookup done based on the user's chosen location, so we need the page to cache based on said location vs just the category URL etc...
I would like to use the CE Cache "url_override" parameter, but I can't seem to get anything but a static value to work there.
Here's what I've tried:
 // Stash the member's zip

    {exp:stash:set name="the_location_tag"}
        {exp:cartthrob:customer_info}
            {shipping_zip}
        {/exp:cartthrob:customer_info}
    {/exp:stash:set}

 // Cache the page at URL with appended zip

    {exp:ce_cache:it
        id="page"
        tags="products|products-cat"
        for="5 minutes"
        url_override="shop/cat/{exp:stash:the_location_tag}"
    }

    {/exp:ce_cache:it}

But with this I get the page cached at:
"shop/cat/expstashthe_location_tag/"
I've tried wrapping the CE Cache tag in {exp:stash:parse process="end"} but that didn't seem to make any difference.
How could I get this to work? Should I be using an embed or some other method?


texts:
I have created a sub domain new.mysite.com. I have a fully functioning  EE website on mysite.com and I am a copy to new.mystie.com to work on it. It moved over fine, except that all the links are broken. On the main site I remove the .index.php with the .htaccess

        RewriteEngine On

    # Removes index.php from ExpressionEngine URLs
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]

however on the sub domain if I put the index.php in the url it works. Is there something special need to do make it work on the sub domain and still keep the index.php removed?

I looked and all the setting are the same.


texts:
This is probably only partly related to ee and more to do with server setup but I am hoping someone can help. Adding any conditional to my templates results in the following error:

Fatal error: Call to undefined function EllisLab\ExpressionEngine\Library\Parser\Conditional\ctype_alpha()

This is on a local machine setup which is new. I am running AMPPS I did a phpinfo check and it does say --enable-ctype=shared so I am assuming ctype is installed. I have tried this with the server running both php 5.3.29 and 5.4.32 and both produce the same results.

I have even tried it with a conditional as simple as

{if "yes" == "yes"}Do something{/if}

Any help would be appreciated.


texts: Problems with Safecracker updating Status after upgrade to EE2.6.1

texts:
I have a simple safecracker form to allow a member group change the status of an entry

{exp:safecracker
channel="{channel_name}"
return="/template/"
author_only="no"
include_jquery="no"
safecracker_head="no"
datepicker="no"
use_live_url="no"
entry_id="{segment_3}"
id="apply_status"}
     {status_menu}
    <select name="status" tabindex="1">
        {select_options}
    </select>
{/status_menu}
<input type="submit" name="submit" value="Submit" tabindex="2" id="apply_status">
{/exp:safecracker}

This was working fine until I upgraded to ee2.6.1. The issue is if the Entry author is in a different member_group than the editor member_group I am given the "you are not authorised to perform this action" error.

The editor member_group has permission to:
Post and edit entries in the channel
Can edit entries authored by others

I thought the problem might be related to this bug in2.6
https://support.ellislab.com/bugs/detail/19335
But that seems to be corrected in 2.6.1

Super-Admins do not get this error.

Can anyone replicated this error or is there a setting I'm missing somewhere?


texts: Removing root-level segment with Structure and Freebie

texts:
I am using Structure and Freebie on a recent project. I have a root-level page in Structure called “Supernav” with five sub-pages (Students, Parents, Faculty, Alumni, Galleries). When visiting any one of these subpages I would like to remove the root-level segment — in this case “/supernav/” — from the URL so it just looks like this:

http://website.com/students/
http://website.com/parents/
http://website.com/faculty/
http://website.com/alumni/
http://website.com/galleries/

For the life of me I can’t figure out how to do this with Freebie. Any suggestions? Appreciate any help I can get.


texts: Display a List of Events with "Month Year" Headers with Low Events

texts:
We have a channel with events in it, and are utilizing Low Events. The design calls for a list of events, with Month Year as a heading, such as this:

January 2014

Event 1 Details
Event 2 Details

February 2014

Event 3 Details
Event 4 Details

... and so on.

I suspect I need to compare the month/year of entry i with that of entry i-1; if they're not the same, display the month/year of entry i. What's the best way of doing that?

It looks like EE has a native tag pair for handling this, {date_heading display="monthly"}, but that appears to be based on the entry_date, and not the value of my Low Events field. It appears that Low Events has the ability to sync the date of the events field with the entry_date, but would prefer to keep them unrelated if possible.


texts: Help on custom gateway for expresso store with omnipay

texts:
I'm trying to understand how to create a new off site payment gateway for Gestpay (Italy premiere Payment Gateway from banca Sella) in expresso store using omnipay library but I really need some guidance.

1) I've understand that I need to make an extension and I've seen the skeleton store_check

2) I've read the "skinny" Build you own gateway on the omnipay website and the only thing I've understood is to look in the existing packages

3) I've looked in the existing packages and I've understand that I need a gateway.php that extends AbstractGateway and in that class I need to put needed parameters plus getters/setters and also the "charging" functions purchase() and completepurchase().

here my understanding starts to fail...

3.1) Ok to the parameters and getters/setters those are the parameters that are editable on Store Payment method configuration page

next there are some methods defined and I understand that purchase() function defines what to do to autorize and capture and that I need a completepurchase() function to handle return from of-site gateway

but next those "official" methods there are other functions in those gateways: for example fetchPaymentmethods() or fetchTransaction() etc etc that are not defined in the omnipay docs...

so I really don't understand if the "standardization" of omnipay is just to have purchase() and completepurchase() and than I can define any other method that I want/need

But also I don't understand who and where those fetch functions are being called

Please HELP!

IMPORTANT

I have also found this GitHub repo with all the code needed to make payments with gestpay but haven' managed to understand how to integrate it with omnipay (saddly a very good library with VERY POOR documentation)


texts: Using a custom variable further up the page

texts:
I have a channel field with no results

{if no_results} set variable here {/if}

I want to set a variable but use it further up the page

{if my_custom_var != "empty"}
do some layout stuff here
{/if}


texts: {order_total} conditional {if order_total > 100}

texts:
I want to offer manual payment option only if cart total amount is above 100,00 but {if order_total > 100} doesnt seem to work.

Any sugestions anyone?


texts:
How do I turn off the developer log?

I already checked the Output and Debugging Preferences at the System administration section in the CMS but there's no option for that.


texts: Calendar Module Tag {date} variable not correct

texts:
I have setup a calendar using the native calendar module tag. The date variable {date format="%F %Y"} renders as APRIL 2013. Shouldn't it be rendering as May 2013? The url points to /2013/05 as the last two segments. Any logic behind this that I missed?

Cheers

edited here is the template code:

{exp:channel:calendar channel="daily_posts"}

&lt;&lt;

{date format="%F %Y"}

                        &gt;&gt;

            {calendar_heading}
            {lang:weekday_long}
            {/calendar_heading}

            {calendar_rows}
                {row_start}
{/row_start}
                {if entries}

                        {entries}

                                {entry_date format="%j %M %d"}
                                {day_number}

                        {/entries}

                {/if}
                {if not_entries}
                    {day_number}
                {/if}
                {if blank}
                    {day_number}
                {/if}
                {row_end}
{/row_end}
            {/calendar_rows}

    {/exp:channel:calendar}


texts: Cartthrob checkout form with different billing and member information

texts:
Hoping to get a bit of Cartthrob insight.

I'm wondering if it's possible to have a CT form which has different fields for Member information - for new member creation - and Billing information which is used for credit card processing.

For example if the new member's information being created during checkout is different from say the business credit card and billing information etc.

Same form inputs in my case just different functions (and therefore probably different input names)

I'm using Profile:edit. The P:E fields are mapped to CT (CT Member Settings) in the CP.

I know I can use inputs like the following where profile_website in custom_data array is a custom text field in the P:E profile channel that gets passed the value to the profile channel during checkout. This example would pass the website to the newly created member profile:

<input type="text" name="custom_data[profile_website]" value="" />

Some ideas I've thought about though, not totally sure what their outcomes would be:

Turn off CT Member drop down field mapping and use custom_data[] array on the Member Info section of the form to fill the profile channel entry for each profile field.
Use custom_data[] array on the Member Info section of the form and hope it overwrites the CT member drop down P:E field mapping after it hits in-turn changing all the details of the new member to that from the member inputs.
Use shipping address somehow for the member creation fields which I can map in the CT Member settings somehow.

I'm a bit surprised this isn't documented somewhere though, admittedly I'm a little tired and my google-foo is coming up short as is my brain for that matter.

Appreciate any thoughts!


texts:
I would like to remove duplicate URLs by removing the trailing slash from URLs. If someone enters a URL like http://example.com/something/ it should 301 redirect to http://example.com/something.

Obviously the query string must be preserved when present.

Here is my .htaccess file at the moment (for localhost):

Options +FollowSymlinks

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~macuser/example.com/
# RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /~macuser/example.com/index.php?/$1 [L]
</IfModule>

Also, please feel free to comment if the above can be improved in any way.


texts: Is there a way to import a specific type of content via datagrab (@type - eg, Press Release)? I tried adding several variations of /cmPublishImport/content?type="Press Release" on an xml import with no avail? Any thoughts on how to do this?


texts: Clear cache when Expresso Store Sale is created

texts:
I think this question is probably more directed at the guys from Expresso Store, but maybe there's someone else out there that has had to deal with something similar before and can point me in a direction.

We are using CE Cache to cache certain parts of our templates, including product data. We've set up cache breaking for when a product channel entry gets added/updated, no problem here, but because the Sales section of Store is outside of the channel entries view, the caching does not get refreshed again after a sale has been associated to a specific product. It is not really a nice solution for us to tell our client they have to go and edit a product again after creating a sale to break the cache.

The ideal for us would be if there's a hook that gets triggered by Expresso Store when a new sale/discount is created that I can just extend to clear the cache programmatically. Also ideally I would not want to hack Store self. I have looked at the documentation here, but most of the hooks look like they are related to the ordering process.

Any ideas?


texts: Move membership data from 1.x to 3.x database

texts: I have an EE site that's based on the latest 1.x version and that has over 10,000 registered members (I tried a couple times to upgrade to version 2.x but it was a disaster). I now want to rebuild the site from scratch using the latest 3.x version and I want to move my 10k membership from the 1.x database to the 3.x database. Is that possible without creating a bunch of nasty side-effects for the new site?


texts: Sage Pay (Server) throwing error at checkout

texts:
I've set up CartThrob and using Sage Pay (server) to process payments.
Using the {exp:cartthrob:checkout_form} tags once billing address details are added and the form is submitted I get the following error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Cartthrob_sage_s::$tokenhost
Filename: payment_gateways/Cartthrob_sage_s.php
Line Number: 469

I cannot find any examples of this issue on the CartThrob forums or here so wondering if there are any ideas how to resolve.

Cole


texts:
Is there a technique with Expresso store that allows for a recourse if a user's shipping address fails the UPS address checker?

As it stands now if an address fails the UPS test, there is no shipping offered because UPS cannot locate the user's address, and so the user checks out without having a shipping method chosen and a potentially undeliverable address.

Has anyone built a recourse like this, and if so, what does it involve?

Thanks in advance.


texts: Looking at the database, is there anyway to find out when a particular Channel field was added to EE?


texts: Expresso Store: shipping_same_as_billing issue since upgrade to 2.3.1

texts:
Since upgrading to 2.3.1 I've found that even if the customer unticks the 'shipping_same_as_billing' box then on the next screen they are told that the Shipping address is the same as the billing address.

This worked fine up to this upgrade.

Thanks in advance for your help

Code on checkout 2.

                    {field:shipping_same_as_billing} Same as Billing Details

Code on checkout 3

                    {if shipping_same_as_billing}
ALWAYS SHOWS AS TRUE!

Same as Billing Details

                    {if:else}

{shipping_name}

{shipping_address1}

{shipping_address2}

{shipping_address3}

{shipping_postcode}

{shipping_region_name}

{shipping_country_name}

{shipping_phone}

                    {/if}


texts: How do I find/make the URL to a PHP page in my extension?

texts:
If I have a control panel page and I want to submit it to a PHP page in my extensions' directory, how do I do that? What would the URL be?

Or would I instead make an ACT URL? If so, how do I do that on the control panel side of EE?


texts: Display Entries Assigned Exclusively to a Parent Category

texts:
I've got a list of categories:

Category 1

Category 1.1
Category 1.2
Category 1.3

Category 2

Category 2.1
Category 2.2

An entry can be assigned to any child category, OR it can be assigned to just a parent category. For example:

Entry 1: Category 1
Entry 2: Category 1, Category 1.2

I want to display entries that are assigned to only the parent category, with no child categories. So I want Entry 1, but not Entry 2. The child categories will change, so I can't hard-code specific categories to exclude.

Ideas?

Update: Full Situation Description

I'm working on an online learning site. The class produces 4 types of study materials: study notes, videos, practice questions, and spreadsheets. Each of these types is a separate channel, since they require different custom fields.

The course is broken down into 3 tiers:

Part

Topic

Reading

A study item can cover just a reading, it can be a review for an entire topic, or it can be a review for an entire part.

I need to be able to display a list of study items that cover a particular Reading, a list of study items that review an entire Topic, or a list of study items that review an entire Part.

In addition, I need to be able to display a "new" icon in each Topic heading if a new study item in that topic or in its child readings has been added recently.

So this is where my problem comes in. I originally thought I could assign these items to categories, then output them based on category. But doing it that way I'm not able to display the items that are only assigned to a Topic, or only assigned to a Part.

What would be the best & most client-friendly way to organize these study items?


texts:
On a single entry page, I want to display a list of categories an entry is assigned to, and these categories should link back to their respective pages. Now those categories are attached to different templates so I need to display the template name dynamically for each category (finance, corporate, real-estate, etc.)

I created this query:

{exp:query sql="SELECT template_name FROM exp_templates WHERE template_id = ‘{template_group}’”}{template_name}{/exp:query}

but unfortunately it still doesn’t display my template name.

To give you an idea, if I use this query:

{exp:query sql="SELECT group_name FROM exp_category_groups WHERE group_id = '{category_group}’”}{group_name}{/exp:query}

Then the group name shows correctly (Finance, Corporate, Real Estate, etc.), but I don’t need the group name, I need the template name!

Any suggestions to point to the right direction?

Thanks in advance!


texts: Focus Lab Config 403 Forbidden Error. Moving site from production to localhost

texts:
I'm very new to EE (coming from a Wordpress background). I'm trying to make changes to an existing site without editing the live site. So I'm trying move the live site to my localhost (I'm running LAMP).

Everything looks correct: Have a fresh dump of the database on my local machine, it's connected to the DB, All of the files look correct, etc. But for some reason I either get at 403 Forbidden error or a 500 Internal Server error.

I have a sneaky feeling that it's the Focus Lab .htaccess file that might be the culprit. Been googling and haven't been able to find a solution.


texts: Show entries that are parents of two specific children

texts:
I'm trying to generate a list of entries that share two specific, common children. I have the entry_id's of the children, but Playa's template tags don't seem to have a way to display parents that share the same children. I found the plugin "Multiplaya" (https://github.com/croxton/Multiplaya) that seemed to fit the bill but it did not work for me.

The following gives me a list of parents of entry_id "26" OR "39", whereas I need parents of entry_ids "26" AND "39":

{exp:playa:parents entry_id="26|39" orderby="title" sort="asc"}
...
{/exp:playa:parents}


texts: Stash Variable as channel entries search parameter

texts:
I’m stumped on something. I’m trying to (using AJAX) allow users to filter events by their location. So you can choose either Region or Country from selects that are populated with the addon REEgion Select. Whatever you select then becomes segment_3. Pretty straightforward. If you chose a Region, it’s no problem to just use that segment as the search, but because there’s some overlap between the two letter codes (CA is Canada and California), I created a conditional to determine what is being returned, and am trying to use stash to get that conditional variable into the search function of the {exp:calendar:events} tag.

This is that tag:
{exp:calendar:events event_limit="30" channel="calendar_events" date_range_start="today" date_range_end="1 year" search:address='{exp:stash:get name='region_search' random}' dynamic="no”}

Here’s the stash variables I created:
{exp:stash:set name="region_stash"}{exp:reegion_select:countries}{if segment_3 == "{region_alpha3}"}{region_alpha2}{/if}{/exp:reegion_select:countries}{/exp:stash:set}

{exp:stash:set name="region_search"} {if '{exp:stash:get name="region_stash" random}' == ''} "region":"{segment_3}" {if:else} "country":"{exp:stash:get name="region_stash" random}" {/if} {/exp:stash:set}

{exp:stash:get name="region_search" random}

outside of the tag, this stashed variable works great and renders no problem. Do you guys know what I’m doing wrong?

Here it is in action.
Thank you!


texts: How do I filter Low Search results based on custom fields?

texts:
just looking for a bit of help in expanding my sites search capabilities.

I have a very basic search box at the moment, handled by Low Search.

It searches one channel (a single collection) and returns results fine.

What I would like is to be able to filter these results based in custom field data within the entries.

For example, I have a checkbox field that lists several "features" for that entry.

I would like the user to be able to select one (or more) of these features and then update the search results with the entries that have these features with the custom field.

I'm thinking something along the lines of the filter section of Devotee.

The Low Search docs have info on creating a more complex search form with more options, but I cannot seem to see anything about "filtering" results.

Just not sure how to implement it, so any pointers would be good!

UPDATE

Right, I've had a go at trying this out, but cannot get it to work properly.

Maybe its the way I'm set up.

I have a main listing template, that is changed via Switchee, with one of the variables being my search results template, however my actual search form is contained within a sidebar that is within a Low Variable :)

This is my search form code:

{exp:low_search:form query="{segment_3}" result_page="walks/results"}

            Search for a walk:
            <input type="text" name="keywords" id="keywords" class="span5" />

            {exp:low_options:walk_features_new}
                {options}

                        <input type="checkbox" name="walk_features_new[]" value="{option:value}"
                        {if "{option:value}" IN ({low_search_search:walk_features_new})} checked="checked"{/if} />
                        {option:label}

                {/options}
            {/exp:low_options:walk_features_new}

            <button class="btn btn-block btn-blue" type="submit">Search</button>

        {/exp:low_search:form}

Note: the IN-conditional works in EE 2.8.1 or below. If you're using EE 2.9 or up, use a different syntax.

And my results page has the following within the switchee case:

{exp:low_search:results query="{segment_3}" collection="walks" search_mode="all"  status="open|new" show_expired="yes" dynamic="off" limit="10" paginate="bottom"}

                {lv_walkdetails_main}

                {lv_pagination}

                {if switchee_no_results}

Sorry, no results!

                {/if}

            {/exp:low_search:results}

When i run a search via the search box (keywords) it works fine, but when I select one of the options, it does provide correct results, or remember what was selected.

Anything obvious wrong?

(not sure if it helps, or makes a difference but it's a P&T checkbox field.)


texts:
So this is my problem.  I am using Structure for a site.  But, I am also using Solspace Calender-- particularly for the ICS function more than anything. (So, if there is another option out there that would allow calendar population from an external ICS file... that would be another option that I'd be open to...), but as it is  I have read around and it seems that as long as I'm not using the same template group and/or Structure is not using /calendar (url) that I should be able to use Solspace Calendar from my understanding.  Version-wise Solspace is using 1.8.6 on EE 2.7.1 and PHP Version 5.3.27.

I've installed and reinstalled a number of times and cannot get the "TIMEZONE" area under Calendar->Calendars to appear. / or a calendar entry that I publish to be recognized when I go to publish an event as I constantly get the "You must first create a calendar before creating an event." Message under the DATES & OPTIONS tab.

What am I doing wrong & / overlooking here??


texts: WebHook: How to POST form data to a URL?

texts:
I'm using an external service - Unbounce.com - to manage my landing pages. Unbounce gives me the option to post to an external URL using their Webhook Integration.

I'm using Freeform to manage my forms. Can anyone give me some advice on how to hook this up? I suspect it's going to be a URL with "ACT" in it, but I'm not really sure where to start? Do I create a receiver form in Freeform?


texts: Not outputting a heading if a search: within Grid has no results

texts:
We are using Grid to manage resources / and downloads on a site. We need to pull together resources from a number of different entries, based on segment. We use a search within Grid on a Select Dropdown to output the appropriate resource.

This is working as expected, but we cannot find a way to not output the
 and
 if the search: within Grid has no results. If we use {limit="1"} on {exp:channel_entries} it won't work, as the entry it recalls may or may not have the appropriate resource in the Grid Select Dropdown.

Any help would be much appreciated, thanks.

 Waste Management Group {segment_2}

{exp:channel:entries
    channel="groups"
    disable="categories|member_data|pagination|trackbacks"
    dynamic="no"
    status="open"
    cache="yes"
    refresh="30"
}
{group_resources search:resource_type="{segment_2}"}

            {group_resources:resource_title} {group_resources:resource_file}({exp:filesize_format dec="0"}{file_size}{/exp:filesize_format} {extension}){/group_resources:resource_file}

{/group_resources}
{/exp:channel:entries}


texts:
I have the following channel setup:

Activity
Location

Activity has a field called "activity_location" which is a relationship to the Location channel.

Looking at the relationshop documentation here: http://ellislab.com/expressionengine/user-guide/modules/channel/relationships.html

I should be able to do the following:

      {exp:channel:entries channel="activity" dynamic="no"}

{title}
        {activity_location}
          {activity_location:title}
        {/activity_location}

      {/exp:channel:entries}

This should as far as I can tell output the Activity title and the Activities location as well, however it's simply outputting the {activity_location} which the locations article id, like so:

Theatre by the Lake 1 {activity_location:title} {/activity_location}

Is the expressionengine documentation incorrect or am I doing something wrong?

Cheers!


texts: Can I turn off Discussion Forum Administrator notifications?

texts: I'm set as the Administrator on a client's discussion forum. Certain employees are set as moderators and receive email notifications. I don't want to receive the notifications as the administrator. Any way to turn this off? I searched through the menus and couldn't find anything. Thanks!


texts: Three different statuses - sort each status differently

texts:
I have a three different statuses displaying within one main channel entries wrapper. I would like the first status to be ordered randomly, and the other two statuses will be sorted alphabetically by title. The code below obviously does not work, but it conveys what we are looking for. Can anyone help with this?

{exp:channel:entries status="1|2|3" channel="listing" limit="15"}
{if status == "1" orderby="random"}
   Entries here
{if:elseif status == "2" orderby="title" sort="asc"}
   Entries here
{if:else orderby="title" sort="asc"}
   Entries here
{/exp:channel:entries}


texts: Selling photos with Store and Channel Images

texts:
Embarking on a site that will sell photos. Those photos will be uploaded in bulk using Channel Images. The user will only want to pick their own photo. All photos will cost the same and should be given to the user post checkout by download.

What's the best way to approach?


texts:
I'm very new to ExpressionEngine and am currently dealing with updating an existing site. I've been having problems getting new content to show up where its supposed to. I've added content that is the same structure and assigned to the same channel as the current content, but it doesn't show up on the page. I'm really confused since I thought this was supposed to be pretty straightforward. The channel I'm trying to add to is called brand-merchandise here is the design view of the page I'm having problems with: (brands/listing-template)

{exp:channel:entries channel="{segment_1}" category="{last_segment_category_id}" dynamic="no" orderby="date" sort="dsc"}

        {exp:channel_images:images entry_id="{entry_id}" limit="1"}

                        {product_images}

                        {/product_images}

                    {product_images}
                       {if {image:total} > 1}

                       {if:else}
                          {if segment_1 != "retail-products"}

                          {/if}
                       {/if}
                    {/product_images}

        {/exp:channel_images:images}

{title}

                {product_description}

             {if segment_1 != "retail-products"}

                    view work

             {/if}

{/exp:channel:entries}


texts:
I've done some Google searches, and don't know if this is possible...but I really hope that it is.

I'm building a channel for landing pages (marketing campaigns.) Each campaign will be a channel entry, and will customize the template(s) I'm building. Each campaign page and thank-you page will have to be able to include JavaScript tracking code that is custom to the campaign - in addition to the GA tracking code that's going to be pulled into the template. This tracking code is often JavaScript.

I was going to create a textarea field for pasting in the tracking code, set to no formatting. But will EE allow this, or will it hopelessly mung up the JavaScript code? (I have Wygwam fields on this EE installation, but I've read in another thread that Wygwam/CKEditor can routinely strip out JavaScript tags - and in this case I don't want the JavaScript to be messed with, stripped out, edited, or even breathed on wrong.)


texts: Send email with contents of channel form upon submission

texts:
I want to have a channel form (new version of SAEF) form on my website for users to fill out. Upon submission I want the form to obviously save as an entry in the system (which is what it does by default) but ALSO send the contents of the filled-out form in an email to a specified email address.

Is this possible either natively, via an addon, or possibly via a hook and writing an addon?

Thanks,


texts: When using Structure, how do I use a different template for category pages?

texts:
I'm using Structure in a new EE site and I'm wondering, what's the best way to use a different template when on a category page? For example, I have a section called "Watch" located here:

/watch/

When clicking on a category (film genre) you land here:

/watch/genre/comedy

Then when clicking on a film you land here:

/watch/film/superman

All three of these pages have different templates. I have the /watch/ index template worked out, as well as the detail template for /watch/film/superman. It's the category template for /watch/genre/comedy that I'm unclear about.

Will I need to tackle this with conditional {if …}{/if} statements in a single template, or is there a smarter way?


texts:
Is there a way to set up SEO Lite so the default title postfix can be overridden on a per entry basis?

I am using the default title setup like so: <title>{title}{site_name}</title>

And am using the default for the Default Title Postfix: |&nbsp;

Basically, I do not want | Site Name Here on every page.

Thank for any help.


texts: WYGWAM font and size menus after upgrade to 3.0.2

texts:
Just upgraded to Wygwam 3.0.2  (EE 2.6.1)

The font and size menus are no longer available in the main toolbar, and though I see options for them in the advanced configuration options, they aren't appearing for me even when I've chosen them either. (I've set fontSize_sizes, fontSize_defaultLabel, font_names and font_defaultLabel)

I'd like to know how to get them to appear again.


texts: htaccess file for static CE Cache also redirect www

texts:
I am currently using the htaccess rules that CE Cache recommends when setting up a static cache:

#------------------- remove trailing slash -------------------
RewriteCond %{REQUEST_URI} !^/system [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)/$ /$1 [R=301,L,QSA]

#------------------- index.php -------------------
#strip index.php from the URL if that is all that is given
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://%{HTTP_HOST}/ [R=301,NS,L,QSA]
#strip index.php/* from the URL
RewriteCond %{THE_REQUEST} ^[^/]*/index\.php/ [NC]
RewriteRule ^index\.php/(.+) http://%{HTTP_HOST}/$1 [R=301,L,QSA]

#------------------- CE Cache Static Driver -------------------
RewriteCond %{REQUEST_URI} !^/system [NC]
RewriteCond %{QUERY_STRING} !ACT|URL [NC]
RewriteCond %{REQUEST_METHOD} !=POST [NC]
RewriteCond %{DOCUMENT_ROOT}/static/ce_cache/8203ba/static%{REQUEST_URI}/index\.html -f
RewriteRule (.*) /_static_cache_handler.php?%{REQUEST_URI}/index\.html [L,QSA]

#------------------- EE -------------------
#rewrite all non-image/js/css urls back to index.php if they are not files or directories
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]

However, I'd like to add in a redirect so if somebody visits at www.mydomain it goes to mydomain. I've tried a few things that I think should work with no luck. Any ideas?

Thanks.


texts:
I have a new problem that I can't resolve yet. I want to set an expiration date in the matrix for each row. I have a column "date" that I need to use as an expiration date. In search I don't want to display the row if is expired, and if its the only row, I want to ignore it in results.

It is posible to do?

Thanks.


texts: How to offer visitors a "view all with tag X" option?

texts:
After wrestling with categories for too long as a way of organising a gallery, I've ditched that and gone to tags instead (using the Solspace module). But I am stuck on one point of presentation on the gallery index page: is there a good way of offering visitors an easy way to view all images tagged with X without having a massive tag cloud of all available tags displayed? Can tags be tied into a simple search so that they can just input the tag they want to look at?

The gallery uses a one image = one entry setup.


texts:
I've transferred an ExpressionEngine site from the staging server to live but now I'm getting the following error for pretty much any {exp:channel:entries} tag:

Severity: Warning

Message: call_user_func() expects parameter 1 to be a valid callback, no array or string given

Filename: channel_entries_parser/Parser.php

Line Number: 380

Here is one of the tags causing it:

{exp:channel:entries dynamic="no" channel="blog_post" limit="10"}
<h3>{title}</h3>
{/exp:channel:entries}

The differences between the servers are:

Staging: PHP Version 5.4.35 Live: PHP Version 5.4.45
Staging: Apache Version  Apache/2.2.15 (CentOS) Live: Apache
Version  Apache/2.2.17 (Atomic)

EE v2.10.2 Addons: cache_buster, ed_imageresizer, ep_better_workflow, excerpt, fieldpack, freebie, freeform, freeform_campaign_monitor_hook, index.html, lamplighter, list.txt, low_seg2cat, mx_cloner, reefine, reelocate, republic_structure_tweaks, stash, structure, structure_nav, structure_page_exists, switchee, trunchtml, url_tube, wygwam


texts: Outputting only one of each item within a relationship tag

texts:
We're using the relationship field to output the "brand" of items, on the listing page we want to output all of the "brands" so that we can filter by brand, however by default the tag outputs each and every items "brand". We would like to limit it so that it doesn't show the same brand twice, it this possible?

Our current code looks like this:

All brands

      {exp:channel:entries channel="products" category_group="1"}

        {product_label}

          {product_label:title}

        {/product_label}

      {/exp:channel:entries}

Any ideas much appreciated!


texts: problem with succes and error messages Message module 'Friends'

texts:
We have a problem with the way Messages to friends returns errors and succes message through the EE system.
We call the form in an iframe.
(And solved form input errors with Jquery validation.)

But the succes redirect still comes through EE. This makes the iframe collaps.
Is there a way to avoid the EE success page?

EDIT

We solved the collapsing of the iFrame by changing the errorpage. But the wish to avoid that standard EE success page still stands.
Is there a way to bypass it?


texts:
To start off, please forgive me if i sound like an idiot as i have limited coding capabilities. Having said that, i've been having trouble setting up a custom payment gateway.

The payment gateway requires that i specify a redirection URL for each transaction status: success, fail and cancelled.

The issue is that i have no idea what URL to specify for successful transactions so that the order is successfully processed and recorded into the database.

I've basically just adapted from one of the existing merchant files and came up with the following:

class Merchant_enets extends Merchant_driver
{
    const PROCESS_URL = 'https://www.enets.sg/enets2/enps.do';

    public function default_settings()
    {
        return array(
            'user_id' => '',
            'test_mode' => FALSE,
        );
    }

    public function purchase()
    {
        $request = $this->_build_purchase();
        $this->post_redirect($this->_process_url(), $request);
    }

    private function _build_purchase()
    {
        $request = array();
        $request['mid'] = $this->setting('user_id');
        $request['amount'] = $this->param('amount');
        $request['txnRef'] = $this->param('transaction_id');
        $request['umapiType'] = 'lite';
        return $request;
    }

    public function purchase_return()
    {
        $result = $this->CI->input->get_post('result');
        if (empty($result))
        {
            return new Merchant_response(Merchant_response::FAILED, lang('merchant_invalid_response'));
        }

        // validate response
        $request = new SimpleXMLElement('');
        $request->Response = $result;

        $response = $this->post_request(self::PROCESS_URL, $request->asXML());
        $xml = simplexml_load_string($response);

        if ((string)$xml->Success == '1')
        {
            if ((string)$xml->status == 'succ')
            {
                return new Merchant_response(Merchant_response::AUTHORIZED, (string)$xml->ResponseText, (string)$xml->txnRef);
            }
        }

        return new Merchant_response(Merchant_response::FAILED, (string)$xml->ResponseText, (string)$xml->txnRef);
    }

    protected function _process_url()
    {
        return $this->setting('test_mode') ? self::PROCESS_URL_TEST : self::PROCESS_URL;
    }
}

Please help!

I'm using EE 2.7 and Store 1.6.5


texts: odd even columns in expressionengine with bootstrap

texts:
I have an issue with looping output for a channel with Bootstrap. What I want to archive is this:

row
col 8 col 4

row
col 4 col 4 col 4

row
col 8 col 4

row
col 4 col 4 col 4

and so on. This would be for a blog index page listing all the posts. What I'm looking for is a way to output with the 8 and 4 columns in one row. Its an issue of getting the 8 and 4 columns to have separate posts. Could I use 'switch'? I would like to do this without any plugins.

I can loop the col 4 easy without an issue. Simple code below:

            {exp:channel:entries}

{title}

{journal_summary.

{title}

{journal_summary}

            {/exp:channel:entries}

Any help would be appreciated.


texts: Force HTML emails for all Email Notification Templates

texts:
I have gone through and added HTML templates/emails for each of the template files in the
CP Home -> Email Notification Templates but not all of them are being sent as HTML. I don't know what else I need to change. The Admin notifications are coming through as HTML and some of the others are as well.

For example, the 'Forgotten Password Instructions' comes through as HTML, but the 'Mailing List Activation Instructions' will not.

I have changed the variables in the Email class to be 'html' for mailtype.

There is nothing different between the emails except for the variables.

Any ideas?

v2.5.5 - Build Date: 20121220


texts: Problem with Expresso or Rich Text fields inside a Matrix inside a Low Variable

texts:
I have a Low Variable that is set as a Matrix field. Inside of my Matrix, I have a field set as an Expresso field. When I view the edit variable screen, the Expresso toolbar doesn't show up -- the field just appears to be a regular text field.

When I try to display my Low Variable field in a template, it displays the Expresso text unprocessed, as if it were a regular text field, and I get these php errors:

Message: Undefined property: Expresso_ft::$row
Filename: expresso/ft.expresso.php
Line Number: 389

Message: Undefined property: Expresso_ft::$row
Filename: expresso/ft.expresso.php
Line Number: 390

Message: Cannot modify header information - headers already sent by (output     started at /path/to/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412

I have the same issue if I switch the field type from Expresso to Rich Text -- no editing buttons on the edit variable screen, and these php errors:

Message: Undefined index: field_fmt
Filename: libraries/Rte_lib.php
Line Number: 505

Message: Cannot modify header information - headers already sent by (output     started at /path/to/system/codeigniter/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412

I don't have any problems using Matrix, Expresso or Rich Text fields as Low Variables individually, it's only when I nest the Expresso or RT fields inside a Matrix inside of a Low Variable.

I'm running EE 2.5.4, Low Variables 2.3.2, Matrix 2.5.2 and Expresso 3.0.2


texts: Solspace tag incorrect number of entries returned

texts:
I'm using tags as a filter example here: http:// devsite2 . desworkdev . co . uk/selector (Test site). The number of products with a specific tag is show next to each tag name.

On certain tags, when I click through the number of products shown doesn't match. E.g. semi sweet (6) should have 6 products with that tag, however when I click through only 5 products are showing.

Could someone please let me know what could be causing this?

UPDATE:

ExpressionEngine v2.9.0
Tag 4.2.7

Code on the tag list page

{exp:tag:cloud channel="products" tag_group_name="default" limit="100"}

<input type="checkbox" name="filter[]" value="{websafe_tag}"> {tag} ({total_entries})

{/exp:tag:cloud}

Code on the tag entry page

{exp:tag:entries inclusive="yes" sort="asc"}

     {if no_tag_results}

No products match your tag selection

     {/if}

     {if new_product !=""}

     {/if}
     {if image_1 !=""}

     {if:else}

     {/if}

Product code
{if recipe_code !=""}{recipe_code}{if:else}N/A{/if}

{title}

More info

{/exp:tag:entries}

URL: http://devsite2.desworkdev.co.uk/selector/tag/semi+sweet


texts: display incomplete orders in frontend template

texts:
I want to display a list of all orders that were incomplete in a frontend template for Expresso Store. I have template that shows all orders that have been processed something along the lines of :

{exp:store:orders limit="2000"}
    {order_id}
{/exp:store:orders}

In the backend I can see that I can filter by order status == Incomplete. However, when I try to do the same in the template I don't get any results. I tried

{exp:store:orders limit="2000" order_status="Incomplete"}
    {order_id}
{/exp:store:orders}

Any help appreciated.

EDIT:

I'm now using the query module, it spits out the order id, but not the rest of the info I need. The code looks like this:

{exp:query sql="SELECT order_id FROM exp_store_orders ORDER BY order_date DESC LIMIT 2000"}

                  {order_id}
                  {order_date format="%j %M %Y"}
                  {billing_name}
                  {if is_order_paid}Yes{if:else}No{/if}
                  {order_total}
                  {shipping_address1}
                  {shipping_address2}
                  {shipping_address3}
                  {billing_phone}
                  {order_email}
                  {items}
                      {if sku == "FAM-SM" OR sku == "FAM-4-S"}
                        {modifiers limit="1"}
                            {modifier_value}
                        {/modifiers}
                        N/A
                      {if:else}
                        {modifiers}
                            {modifier_value}
                         {/modifiers}
                      {/if}
                      {if sku == "FAM-4-S"}
                        {order_custom3}
                        {order_custom4}
                        {order_custom5}
                      {if:else}
                          N/A
                          N/A
                          N/A
                      {/if}
               {/items}

            {/exp:query}


texts: Using Next/Previous entry and looping back to the first entry

texts:
I have a JQuery slider that, for each slide, needs to show what slide is coming next. That is, at the bottom of each slide, it will say, Next: Lorem Ipsum Dolor--the headline of my next slide.

I'm thinking the best way to do this might be to make the slides channel entries, and use the Next Entry tag to pull the name of the next entry.

Only problem is, when I get to the last slide, the "Next" will be empty. Is there any way to link back to the first slide? Is there a conditional that tells EE, if there is no "next", then pull from the first slide?

Thanks


texts: Can I natively define a default value for a custom field?

texts:
I have a channel for events, which includes the time, date and city that the event is in. In approximately 80% of cases, the event's city will be Sydney.

Is it possible for me to define Sydney as the default value so that it's pre-filled when a user creates a new entry? I'm sure there's a relatively easy way to do this using a fieldtype or extension, however I would prefer to have this functionality natively.

Also, I guess you could do this on templates, using code such as:

{exp:channel:entries channel="events" dynamic="no"}
  {if city}
    {city}
  {if:else}
    Sydney
  {/if}
{/exp:channel:entries}

but then I would have to remember to do this for every template that it occurs on, which is not ideal.

Cheers, for any help


texts:
In the past, I've mainly coded Home page Heroes the following ways:

1) individual channel tags with the offset parameter
2) Low Variables
3) Setup a custom feature that basically flags that the entry is for the hero.
4) an individual channel, and use the sticky functionality to designate which one should appear in the hero.

Trying to think of a creative way to code a Hero where there are 6 stories with one being the "Headline" Story for the day.

Any thoughts would be appreciated.

Thanks!


texts:
How to make custom template for entry?
Example:
site.com/service/repair/
I have 2 entry about repair. iPhone repair & iPad repair
So how to make page with url
site.com/service/repair/iphone-repair
and unique template for this page?


texts:
Is it Possible to exclude weekends from the {exp:low_events:calendar} tag?
Weekends is not needed.


texts: Expression Engine conditional statements not behaving as expected

texts:
I'm really very new with expression engine, so bear with me:

I have an exp:playa:parents call, and I need to set the category conditionally.

I have the following:

            {exp:playa:parents
                    {if segment_4 == "new_arrivals"}
                        {if segment_3 == "furniture"}
                            category="57"
                        {/if}
                        {if segment_3 == "lighting"}
                            category="59"
                        {/if}
                        {if segment_3 == "accents"}
                        category="58"
                        {/if}
                    {if:else}
                        category="{segment_4_category_id}"
                    {/if}
                    channel="products"
                    disable="categories|member_data"
                    dynamic="no"
                    limit="24"
                    paginate="bottom"
                    {if rev_segment_1 == "all"}limit="500"{/if}
            }

As a programmer, the if/else logic seems... logical, but that doesn't seem to help the fact that the category doesn't seem to get set properly at all.

Is there a subtlety to conditional statements in EE that I am clearly not understanding?  Am I approaching this the wrong way?

Any help would be so appreciated.

Edit:
the url that's failing: http://localhost/arcade/by/accents/new_arrivals

this page gets called in two places, and either that page output doesn't work (like it does with that else block in there) or the category doesn't get set properly here: http://localhost/damien_langlois_meurinne_for_pouenat/by/furniture/seating and it displays all the category types (not just seating) [this happens after removing the else block].

I've checked with the html comment method you mentioned, and all the data seems to be fine.

When I turn on the profiling output, I get this as well for the playa call:

 (0.122617 / 14.88MB) Tag: {exp:playa:parents entry_id="8380" {if segment_4 == "new_arrivals"} category="58" {if:else} category="57" {/if} channel="products" disable="categories|member_data" dynamic="no" limit="24" paginate="bottom" var_prefix="playavTWmYmQm"}


texts: Solspace importer cache folder safe to clear?

texts: Simple question: the /system/expressionengine/cache/importer folder has grown to 130MB. Can I delete the contents without consequences or should I leave as is?


texts: Using Backstretch to generate a slideshow

texts:
I have a site where the client wants to add images as a fullscreen slideshow behind the site container. I've used backstretch.js for this and can get it to show up a single image by using straight channel entries but this is no good. I've created a channel just for the images where each entry is a single image file.

 {exp:channel:entries channel="background_images" dynamic="no" orderby="date" sort="desc" status="open"}

  <script>
        $("#stretch").backstretch([
        "{background_images}",
         ], {duration: 5000, fade: 750});
  </script>

{/exp:channel:entries}

I then tried to set up an embed, where I used this code on my embed page:

{exp:channel:entries channel="background_images" dynamic="no" orderby="date" sort="desc" status="open" backspace="1"}"{background_images}",{/exp:channel:entries}

and called in into my template like so:

<script>
$("#stretch").backstretch([
    {embed="en/background_imgs"}
 ], {duration: 5000, fade: 500});
</script>

But using this method, I get a console error:

Type Issue: 'undefined' is not a function (evaluating '$("#stretch").backstretch')

Am I going about this the wrong way? Has anyone implemented this successfully in the past that could give me a little help.


texts:
I need multiple-domain support, some e-commerce catalog, uploading files from users and some forum feauteres in future. Is it good choice for this tasks?
Why not Drupal, or Modx, or wordpress - for free?
Any ExpressionEngine advantages?
Thanks