expressionengine

expression engine sql query entries list by authors

眉间皱痕 提交于 2020-01-17 05:25:13
问题 How would I order the latest 3 entries from a channel with each entry from a different author? (so they don't end up being 3 latest entries by the same author) - I think I need to use an SQL Query for it? {exp:channel:entries orderby="screen_name|date" channel="portfolios" limit="3" group_id="5" dynamic="no"} <img src=" {thumbnail}" alt="{title}"/><br /> {title}<br /> {/exp:channel:entries} Thanks in advance! 回答1: Mark - here's a repost of the answer I posted on the other dupe question: The

I am having a “The file could not be written to disk.” error in ExpressionEngine with files 2MB and up

…衆ロ難τιáo~ 提交于 2020-01-02 05:23:27
问题 Has anyone had this issue where they are getting a The file could not be written to disk. error on ExpressionEngine v2.9.2. I notice I am only having this issue with files 2MB and up and in following other posts I have turned off XSS filtering with no help. If it means anything I have EE running on two EC2 instances that are being load balanced. Deployments are handled with OpsWorks. I have also increased file upload size and post size, as well as the ELB connection settings. 回答1: So I found

How to pass a parameter value from a hyperlink on one page to another page in ExpressionEngine?

天大地大妈咪最大 提交于 2019-12-25 10:51:10
问题 I am on an expression engine entry page with a few hyperlinks... <a href="http://example.com/expressionenginepage/">Go Form</a> <a href="http://example.com/expressionenginepage/">Go2 Form</a> Based on which hyperlink I click, I want to navigate to another expression engine page with a contact form and dynamically set the value of the subject field based on which hyperlink was clicked on the previous page......How do I go about doing this? Can I set a parameter value which then gets passed to

I need text concering the picture number to change in jcarousel

我的梦境 提交于 2019-12-25 02:16:58
问题 I have a jcarousel using in Expression Engine. The code is as below <div id="carousela" class="jcarousel image-cell"> <ul> {exp:cg_industry_data:images vehicle_id="{id}" size="large"} <li {if {index} == {segment_3}} class="active"{/if}><a href="car-gallery/{id}/{index}" onclick="return false" class="noevents"><img src="{img_url}" alt="" /></a> </li> {/exp:cg_industry_data:images} </ul> </div> The carousel works just fine. Now I want a text something like below Picture xxx of {imageCount} .I

Any way in Expression Engine to simulate Wordpress' shortcode functionality?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 14:50:28
问题 I'm relatively new to Expression Engine, and as I'm learning it I am seeing some stuff missing that WordPress has had for a while. A big one for me is shortcodes, since I will use these to allow CMS users to place more complex content in place with their other content. I'm not seeing any real equivalent to this in EE, apart from a forthcoming plugin that's in private beta. As an initial test I'm attempting to fake shortcodes by using delimited strings (e.g. #foo#) in the content field, then

Undefined variable error in ExpressionEngine plugin

让人想犯罪 __ 提交于 2019-12-24 11:15:46
问题 I'm working on a plugin that does device detection based on an external library. This is what I have so far: class Deetector { // public $return_data; /** * Constructor */ public function __construct() { $this->EE =& get_instance(); $this->EE->load->add_package_path(PATH_THIRD.'/deetector'); $this->EE->load->library('detector'); $this->return_data = ""; } public function deetector() { return $ua->ua; } public function user_agent() { return $ua->ua; } // ---------------------------------------

Expression Engine 2 301 redirect old template group to new one

不打扰是莪最后的温柔 提交于 2019-12-24 07:28:02
问题 I thought this would be pretty simple, however I am having issues permanently redirecting an old template group to a new one. I have www.domain.co.uk/weddings which needs to be directed to www.domain.co.uk/more-weddings . Both template groups exist, not sure if I need to delete the old one too? Or any other settings in the template preferences? Here's what I have been trying to use: RedirectMatch 301 ^/weddings\$ http://www.domain.co.uk/more-weddings I have a load more redirects which are

Redirect uppercase URL's to lowercase except *** - htaccess

那年仲夏 提交于 2019-12-23 19:41:33
问题 I'm trying to redirect uppercase URL's to lowercase, but having a bit of a nightmare with it! (Mainly because my .htaccess knowledge is lacking!) Currently I have: <IfModule mod_speling.c> CheckSpelling on </IfModule> RewriteEngine On RewriteMap lc int:tolower RewriteCond %{REQUEST_URI} [A-Z] RewriteRule (.*) ${lc:$1} [R=301,L] Which works fine, but the CMS I'm using puts pagination links in the URL such as http://website.com/blog/P8 or http://website.com/blog/P10 and because the URL's have

sql query to convert new line character to a html <br>

江枫思渺然 提交于 2019-12-23 09:26:48
问题 I have a mysql database of articles that were entered into a textarea with no formatting, they use only a newline character for line breaks \n I need to convert all of these into html br tags <br /> can you help me write a query to do this that I can run in phpmyadmin that will do this? the name of the table is exp_channel_data as a bonus question... Is there a query I can run that will strip everything out of the middle of p and span tags I want to get rid of this stuff <p class="MsoNormal"