Symphony – Forum http://symphony-cms.com Symphony Forum Discussions en Symphony CMS elRTE editor http://symphony-cms.com/discuss/thread/88424/ Sun, 27 May 2012 00:31:00 +1000 http://symphony-cms.com/discuss/thread/88424/ <p><strong>By Alixon</strong></p><p>A new extension, "<a href="http://symphony-cms.com/download/extensions/view/88423/">elRTE editor</a>" is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.</p> Deploying a site to GitHub http://symphony-cms.com/discuss/thread/88420/ Sat, 26 May 2012 22:51:00 +1000 http://symphony-cms.com/discuss/thread/88420/ <p><strong>By davidpmccormick</strong></p><p>I'm new to Git and I've been trying out bits and bobs from <a href="http://symphony-cms.com/learn/articles/view/getting-git-for-symphony-development/BlockquoteBlockquote">Jonas's tutorial</a> but I'm stuck at deploying my site to a public repo on GitHub.</p> <p>Can anyone expand on this section for me (or point me to another appropriate tutorial)?</p> <p>Middleweight: deploying your site to public or private repositories Suppose you want to host a copy of your site’s repository on Github, or use a local development repository and occasionally push it to another server. You’ll maintain a link to the official repository for core updates, but change the origin to your own repository.</p> <p><code>git remote add symphony git://github.com/symphonycms/symphony-2.git</code></p> <p><code>git remote rm origin</code></p> <p><code>git remote add origin git@github.com:username/site.git</code></p> <p><code>git push origin master</code></p> <p>Thanks, D</p> Internal Server Error http://symphony-cms.com/discuss/thread/88411/ Sat, 26 May 2012 17:16:00 +1000 http://symphony-cms.com/discuss/thread/88411/ <p><strong>By annamae</strong></p><p>After installation I get this message:</p> <p><em>Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, apache@www.... and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.</em></p> <p>However, the file install-log.txt says <em>“Installation Process Completed”</em>.</p> <p>Does anyone have an idea what could be the problem?</p> Subsection Manager - Count entries that are linked to a subsection entry? http://symphony-cms.com/discuss/thread/88404/ Sat, 26 May 2012 14:01:00 +1000 http://symphony-cms.com/discuss/thread/88404/ <p><strong>By MrBlank</strong></p><p>I currently have an iPhone photo site with photo entries. With the photo entries, I have a Subsection Manager link to the Applications section where I can choose which apps I used to create the image.</p> <p>On my Apps Used page, I am listing all the apps with a count (number) of images that use that app. </p> <p>Problem is, I'm having to create a data source that creates a param that lists every photo's Apps Used ID. In the XSL, I recursively match the app ID and count how many times it shows up in the param list. It works fine now with a few hundred photos, but if I ever get thousands of photos, it'll start to bog down.</p> <p>Two things that make this complicated is that I need to be able to filter the photo entries by the "Published" check box and a photo can be linked to more than one app.</p> <p>Link to page I'm talking about:</p> <p><a href="http://photobored.joshnichols.com/apps">http://photobored.joshnichols.com/apps</a></p> <p>Is there a better way to do this? Do I need to just make a custom data source? </p> <p>Thanks!</p> Extension Installer http://symphony-cms.com/discuss/thread/88402/ Sat, 26 May 2012 10:02:00 +1000 http://symphony-cms.com/discuss/thread/88402/ <p><strong>By jetbackwards</strong></p><p>A new extension, "<a href="http://symphony-cms.com/download/extensions/view/88401/">Extension Installer</a>" is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.</p> Field with entry ID (starting from 1) http://symphony-cms.com/discuss/thread/88373/ Fri, 25 May 2012 07:19:00 +1000 http://symphony-cms.com/discuss/thread/88373/ <p><strong>By janiczek</strong></p><p>Hello,</p> <p>is there an easy way I'm missing to have an auto-populated field with an unique number? You know, "post 1, post 2, post 3" as they get created...</p> <p>The System ID doesn't always start from 1; and if I wanted to have a text field, I wonder how can I make it pre-filled automatically? Some kind of Event, maybe? (I don't know much about them.)</p> <p>~ MJ</p> Event Access Params Created by Datasource http://symphony-cms.com/discuss/thread/88346/ Thu, 24 May 2012 22:50:00 +1000 http://symphony-cms.com/discuss/thread/88346/ <p><strong>By tristian</strong></p><p>Is there anyway for an event to access output params from one of my datasources? </p> <p>I want to avoid using hidden form fields</p> Modulo maths to split by 6 http://symphony-cms.com/discuss/thread/88342/ Thu, 24 May 2012 22:37:00 +1000 http://symphony-cms.com/discuss/thread/88342/ <p><strong>By designermonkey</strong></p><p>Maths is <a href="http://en.wikipedia.org/wiki/Dyscalculia">not my strong point</a>, and I'm stuck.</p> <p>I've looked through the forum at every post that I can find that mentions lists, splitting lists, modulo etc, but it makes little sense to me to achieve what I need...</p> <p>I need to split up my entries into groups of 6. I have to start from <code>entry[position() &amp;gt;= 2]</code>, which I have in a variable called <code>$entries</code> as the first entry is a feature and handled separately. My intended output is a list for every 6 items out of that variable.</p> <p>Anyone have any ideas?</p> Deactivate an extension in case of fatal error http://symphony-cms.com/discuss/thread/88338/ Thu, 24 May 2012 22:03:00 +1000 http://symphony-cms.com/discuss/thread/88338/ <p><strong>By proyb2</strong></p><p>As much as we love cutting edge feature in extensions that may bring about unexpected "Fatal Error". I believe there is no easy way to deactivate in a click, rather, its quite troublesome for developers to remove the extension name manually in PHPAdmin.</p> <p>Should this be implement in Symphony core which allow us to "Deactivate" error extension after log in to Symphony account?</p> Images broken in entry listing page http://symphony-cms.com/discuss/thread/88332/ Thu, 24 May 2012 21:26:00 +1000 http://symphony-cms.com/discuss/thread/88332/ <p><strong>By into</strong></p><p>http://see.weareinto.com/GrVq</p> <p>Any idea why this it happening?</p> <p>It says.. </p> <pre><code>Error loading image /workspace/workspace/uploads/images/leaderboards/brazil-4fbc0cf2ae883.jpg. Check it exists and is readable. </code></pre> <p>meanwhile..</p> <pre><code>/workspace/uploads/images/leaderboards/brazil-4fbc0cf2ae883.jpg </code></pre> <p>works. Somehow it is adding an extra <code>workspace</code></p> Member extension, how to login? http://symphony-cms.com/discuss/thread/88324/ Thu, 24 May 2012 18:59:00 +1000 http://symphony-cms.com/discuss/thread/88324/ <p><strong>By Dido</strong></p><p>Hi,</p> <p>anyone can tell me how I can make a login with MEMBER EXTENSION?</p> <p>I've created a section with Nome, Password and Role. I've created an entry in this section (with default role Public). I've activated in preferences the new section.</p> <p>In my template I've inserted:</p> <pre><code>&lt;xsl:template match="data"&gt; &lt;form method="post" autocomplete='off'&gt; &lt;label&gt;Username &lt;input name="fields[{Member: Username nome}]" type="text" /&gt; &lt;/label&gt; &lt;label&gt;Password &lt;input name="fields[{Member: Password password}]" type="password" /&gt; &lt;/label&gt; &lt;input name="redirect" type="hidden" value="{$current-path}" /&gt; &lt;input name="member-action[login]" type="submit" value="Login" /&gt; &lt;/form&gt; </code></pre> <p>But it return an Invalid Expression Error.</p> <p>Can you help me to use this ext or link me to any tutorial (the doc is good and I followed it step to step without results)</p> <p>Thanks Davide.</p> oAuth Handling http://symphony-cms.com/discuss/thread/88311/ Thu, 24 May 2012 16:54:00 +1000 http://symphony-cms.com/discuss/thread/88311/ <p><strong>By gunglien</strong></p><p>I know there are plenty of APIs out there using oAuth for login, the only one that seems implemented on Symphony was the one for GitHub.</p> <p>What I would like to do is - let all my users 'login' via a specific oAuth service into a private network. However preferably the same extension would allow users to 'link' multiple other social networks such as LinkedIn/Twitter.</p> <p>My Idea was to store the 'main' oAuth stuff into a session so this would eventually log-out. As for the other accounts I was planning on saving the key &amp; secret inside a database so that I can link-them to the main login. As far as I know oAuth keys/etc do not expire so this way after a user logs in using the main system I can still pull up his latest tweets / linked-in feed.</p> <p>Obviously if successful this extension would be nicely packaged and allow developers to set up which oAuth they'd like to use (main/secondary)</p> How to filter on month only? http://symphony-cms.com/discuss/thread/88304/ Thu, 24 May 2012 13:08:00 +1000 http://symphony-cms.com/discuss/thread/88304/ <p><strong>By TheJester12</strong></p><p>I know this is a bit of a strange question, but I promise I have a good use case. I want to use a datasource to filter on the month value of a date field, but not the year or the day. What might be syntax look like for this? I thought that</p> <pre><code>{$year}-{$month}-{$day} </code></pre> <p>would work fine, even when $year or $day don't have values... but that doesn't seem to be the case. Any other ideas? Thanks for your help.</p> Markdown Editor http://symphony-cms.com/discuss/thread/88292/ Thu, 24 May 2012 07:37:00 +1000 http://symphony-cms.com/discuss/thread/88292/ <p><strong>By klaftertief</strong></p><p>A new extension, "<a href="http://symphony-cms.com/download/extensions/view/88291/">Markdown Editor</a>" is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.</p> Some confirmation on .htacces to reditect multiple domains to one domain with correct redirect http://symphony-cms.com/discuss/thread/88278/ Thu, 24 May 2012 04:50:00 +1000 http://symphony-cms.com/discuss/thread/88278/ <p><strong>By moonoo2</strong></p><p>Sup peeps!</p> <p>I'm putting a site together which has a few legacy domains purchased from previous ventures and they wish for the domains to be redirected to the master domains. these domains don't have any legacy content but I'm looking for the best approach using .htaccess to issue a 301 redirect for all the domains pointed at the VPS so it serves the one main domain all the content.</p> <p>I've taken some htaccess code from a previous post and am wanting some advice on best approach baring in mind the symphony htaccess file already in place.. here's what I have so far:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase / ### GLOBAL REWRITE RewriteCond %{HTTP_HOST} !^(www.)?domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,NC,L] &lt;/IfModule&gt; </code></pre> <p>I'm no htaccess guru but does the above rule look for any domain that is NOT www.domain.com and redirect it to domain.com.</p> <p>Thanks in advance.</p> Site Access To Tester when in Maintenance Mode http://symphony-cms.com/discuss/thread/88276/ Thu, 24 May 2012 04:24:00 +1000 http://symphony-cms.com/discuss/thread/88276/ <p><strong>By tristian</strong></p><p><strong>Here's the scenario:</strong> The site I've created is due to go live soon, the client wants to give a select number of users access to the site for testing purposes. </p> <p>I figured I'd create an author role "tester" and grant no privileges. This almost works but the test user still has access to their own password and also, curiously, Members Roles.</p> <p>Does any one have a work around for this?</p> <p>Thanks Trist</p> Page handle, multingual and SEO http://symphony-cms.com/discuss/thread/88243/ Wed, 23 May 2012 21:23:00 +1000 http://symphony-cms.com/discuss/thread/88243/ <p><strong>By Dido</strong></p><p>Hi, </p> <p>I've got a page called QUALITA' (This is a Test then a simple page without Data Source linked).</p> <p>In this page are allowed the extensions Page LHandles and Frontend Translations for supporting two language Italiano and English.</p> <p>Then I've got this situation:</p> <p>www.mysite.it/it/qualita www.mysite.it/en/quality</p> <p>But I've seen if I write:</p> <p>www.mysite.it/en/qualita www.mysite.it/en/qualità</p> <p>the url exists because I think It take's the "base" handle instead of the language-handle.</p> <p>I can fix that using Url_router but there's a better solution for this?!?!?</p> <p>The risk is these urls being indexed and it's not good.</p> <p>Thanks (another time :D ) Davide</p> Forum replies: pulling additional user data http://symphony-cms.com/discuss/thread/88227/ Wed, 23 May 2012 08:36:00 +1000 http://symphony-cms.com/discuss/thread/88227/ <p><strong>By waterbear</strong></p><p>As I mentioned in another thread, I'm building a forum and right now I'm having difficulty pulling user data the correct way.</p> <p>My intention is to distinguis users by their roles. With topics it was easy; it's the topic replies I have issuess with.</p> <p>Since I can only pull the author's name of the topic reply in question, I have a datasource that gets all registered users and their data (their role, in this case) and use it to compare the reply author with the corresponding user. It works, I can display the author's role, but it outputs all the authors that have participated in the discussion in every single reply (see attachment).</p> <p>I have the following variables in my master.xsl utility:</p> <pre><code>&lt;xsl:variable name="user-list" select="/data/user-list/entry"/&gt; &lt;xsl:variable name="reply-author" select="/data/topic-replies/entry/author/item"/&gt; </code></pre> <p>And this is the template that outputs the replies (only the importand bit):</p> <pre><code>&lt;xsl:template match="topic-replies/entry"&gt; (header would be here) &lt;div class="comment"&gt;&lt;xsl:copy-of select="body/*" /&gt;&lt;/div&gt; (tools would be here) &lt;ul class="profile"&gt; &lt;xsl:for-each select="$user-list"&gt; &lt;xsl:if test="display-name = $reply-author"&gt; &lt;li&gt;&lt;a class="{role/name/@handle}" href="{$root}/user/{display-name/@handle}"&gt;&lt;xsl:value-of select="display-name"/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;xsl:value-of select="role/name"/&gt;&lt;/li&gt; &lt;/xsl:if&gt; &lt;/xsl:for-each&gt; &lt;/ul&gt; &lt;/xsl:template&gt; </code></pre> <p>If you look at the attached image (names pixelated), you will see three authors for one reply, which is the problem I'm having. It displays their role and outputs different colours depending on that, but I don't know how to limit each author to their corresponding reply.</p> <p>I hope that made sense... Is there actually a way to do this?</p> Filter current element with Data Source http://symphony-cms.com/discuss/thread/88209/ Tue, 22 May 2012 23:13:00 +1000 http://symphony-cms.com/discuss/thread/88209/ <p><strong>By Dido</strong></p><p>Hi, how Can I filter from a list the current ID of a page with Data Source (or other method)?</p> <p>For Example:</p> <p>I'm in a product page and below there's the correlated products. In the list of correlated products I wouldn't show the current product of this page.</p> <p>Thank's Davide</p> SELECT_BOX_LINK translation http://symphony-cms.com/discuss/thread/88193/ Tue, 22 May 2012 18:04:00 +1000 http://symphony-cms.com/discuss/thread/88193/ <p><strong>By Dido</strong></p><p>Hi, </p> <p>I don't know how in the "DATA SOURCE" query, I can use the "translated" value of SELECT<em>BOX</em>LINK.</p> <p>I've got a category with an Italian name and an English name. The product are Linked to this category.</p> <p>When I'm filtering in the datasource, it's used the Italian value in both cases (it/en).</p> <p>It's possible to fix that?</p> <p>Thank's Davide</p>