Hot answers tagged

7

You can't set up Snippets, but you can set up Global Variables in your config.php file. Below is a code example from this blog post titled ExpressionEngine config.php. $default_global_vars = array( // Tag parameters - Short hand tag params 'global:disable_default' => 'disable="categories|pagination|member_data"', 'global:disable_all' ...


6

There's plenty of addons already out there: http://devot-ee.com/add-ons/title-master http://devot-ee.com/add-ons/mx-title-control


4

You can most definitely do this. Just use the channel entries API hooks. You can use a conditional to test to make sure your logic performs only for new records vs. edit. It would actually be relatively easy to do. The most time consuming part would be adding a settings pane so you could use a UI to building the URL titles on a per channel basis (for example)...


4

No, you can't generate them dynamically but you can use Snippet Sync or Libraree to use snippets as files and port them into other projects. I use Libraree as part of my base install with a couple base snippets for a header and footer that I carry through projects. Using config overrides (Focus Lab's Master Config) I set where to store the files and edit ...


4

Could you use Matrix & Playa to solve this? Your Matrix field would let you add any number of sidebar widgets to the page as rows in Matrix. You can configure the Maximum Allowed Rows if you want to limit the number of sidebar widgets you associate. Within each Matrix row, your Playa field can be used to relate widget entries from their own Sidebar ...


3

Have you taken a look at the Yearlist Add-on? Then I would think it should be possible to do something like this: <div class="content-tile"> <div class="grid_4_desktop grid_4_tablet grid_1_mobile" id="archive-menu"> <h2 class="title">News</h2> <ul> {exp:yearlist channel="yourchannel" category="1"} <...


3

I would highly recommend using Low Search to provide the filtering you're talking about. http://gotolow.com/addons/low-search/docs/filters#categories By default it would show all entries, and allow you to use your categories as filters to refine your results. It can do some pretty remarkable stuff, highly recommended!


3

If you need the JPGs for rendering on a page the Thumber add-on from ElectricPutty should do exactly what you need: {exp:thumber:create src='/uploads/documents/yourfile.pdf' page='2' extension='jpg' height='250' class='awesome' title='Click to download' link='yes'}


3

If you can't find a solution with existing EE search addons, you could build a plugin to grab the entries that match your criteria. The plugin could perform a custom query capable of doing the advanced conditionals you need. It could ultimately return a piped list of all the entries that match the category assignments desired: 323|122|321|116|990 You ...


3

Use NavEE's Regular Expression field for the FAQs menu item. This tells NavEE to match an item as selected based on that rule (using preg_match()), rather than just matching the URL itself. So in your case you could enter /faqs/.


3

It's going to be a little more manual with expressionengine. You might have to set the parameters in the link yourself and use php (or a plugin) Build the link similar to this: <a href="/form?name={name}">{name}</a> and fill out your form using php (php must be enabled on the form template): <input type="text" name="name" value="<?php ...


2

I'd say you'd want to look closely at Matrix or Content Elements for this purpose, depending on your exact requirements.


2

To isolate the problem, I would Try with a very simple "hello world" snippet or embed and see if it renders Add a single simple exp:channel:entries tag in there and see if it works Add in your exp:channel:entries one by one to see where it breaks EDIT: Try adding dynamic="no" to your channel entries loops, since you don't want EE to try to be intelligently ...


2

Get yourself Zoo Triggers and you will love yourself! {exp:zoo_triggers:archive channel="news" status="open" show_counter="no" type="year"} Just make sure you give the settings docs a once over to get it set up like you want.


2

I usually do all of my AJAX form submissions with the jquery ajax form plugin. This allows you to customize the experience for your users here is the link to the plugin its very simple to implement. http://malsup.com/jquery/form/ Hope this helps!


2

You could try using Splitter, I've used it before for tis purpose.


2

The most direct route for a user that is restricted from editing templates would be a flag somewhere they can access. You'll need to add more details to your question, but one thought that works is to add a field to a channel that they can turn on or off. For example, if this is related to one single page that has one entry driving it, you could add the ...


1

Use jQuery. Something like this maybe: http://johndoesdesign.com/blog/2012/jquery/how-to-split-a-dynamic-list-into-two-equal-columns-using-jquery/


1

If they have to be in absolutely two columns, you can make two channel entries calls and use the expressionengine modulus (%) operator <section class="column1"> {exp:channel:entries channel="foo"} {if count % 2 == 0} {title} {/if} {/exp:channel:entries} </section> <section class="column2"> {exp:channel:entries channel="foo"}...


1

In the end this isn't really an ExpressionEngine question at all (you don't need to use any EE variables here). A few things: You cannot have two elements with the same ID on each page (so, using <a id="switch"> within a loop is a no-no). CSS class names cannot be purely numeric (e.g., class="{entry_id}). You don't have an href value or closing tag ...


1

Couldn't you use freeform's form info tag pair to perform a conditional check? You could use that tag pair to lookup how many entries already exist in your collection, and then everything flows from there. {exp:freeform:form_info form_name="your_form_name"} {if freeform:total_results < "15"} Thank you but this session is full {if:else} ...


1

Math add-on? This one is free and has a lot of praise. But I'm assuming you need the total on the page that receives the form, and as you may not be able to use the add-on as a parameter, it may not work. Worth a try. Otherwise what about simply using JQuery/JavaScript on the form onChange event for either/both the fields, that automatically populates a ...


1

Looks like it should work at a quick glance. Since it seems that the Channel Search might not work with Title, I think your 2 options are create a new field for Product Name or you can write your own mysql query / plugin to do the search for you.


1

Just came across this post, for anyone else that may be looking for similar answers to this question. I've used this type of code on pages to display member details based on a number of variables with no problems to date. Here's my take: {if segment_3 == ""} <p>no results</p> {if:else} {exp:zoo_visitor:details limit="99" url_title="{segment_3}" ...


1

? check if parameter dynamic="no" exist. If is not exist or dynamic="yes" then parse the URL try to find information which can be used as parameters for your plugin. If dynamic="no" just ignore URL and parser tag parameters only. That all. If is not what you expected - please rephrase you question.


1

{preload_replace:404="true"} will never work as you are using it because it's not passed to the header. This variable is only available for use in the same template... docs for Preload Text Replacements are here. Preload Replacements act as a straight string replacement for use later in the same template. Instead use this in your 404 and header ...


1

You'd need to break it out into a regular conditional statement where the two search results are compared with the OR operator: {if '{matrixfield search:matrix_col_01="value_from_checkbox"}' || '{matrixfield search:matrix_col_02="value_from_checkbox"}'} {title} {/if}


1

I do this using great addon from Rob Sanchez http://devot-ee.com/add-ons/dynamo (going to use default EE search, but dynamic parameters are not passed when using pagination). not sure if you are ok with submitting the form with your inputs, but you can show (even select) your filter criteria.. Let us know


1

I'm not sure exactly what the rest of your template code looks like, but there is certainly no limit on the number of times you can use the dynamic css variables like store_product_price in your template. One caveat to remember is that they will only work inside your {exp:store:product} tag. So you won't be able to display them outside of the product tag.


1

I would start by looking at the Matrix add-on. This may help solve your problem. Matrix


Only top voted, non community-wiki answers of a minimum length are eligible