Search found 353 matches

by manuel
Tue Apr 23, 2013 9:59 am
Forum: Tips and Tricks
Topic: Create a one page site with the reorderable content
Replies: 0
Views: 2538

Create a one page site with the reorderable content

Dear All, A quick example demonstrating what smarty building blocks are needed to grab the content of all pages for a certain level and show them on one page. The advantages: - only cgsimplesmarty module is needed (you could also replace this with a UDT if you don't want to install any modules at al...
by manuel
Thu Apr 11, 2013 8:00 pm
Forum: Tips and Tricks
Topic: Getting the image dimensions in smarty
Replies: 5
Views: 10263

Re: Getting the image dimensions in smarty

Dear brutusmaximus, Please take a look at the article, Calguy1000 pointed out we could use php functions instead of php modifiers so i've made some serious changes to the article: http://www.i-do-this.com/blog/49/Getting-the-image-dimensions-in-smarty (might need to hit Ctrl+F5 to refresh) Greetings...
by manuel
Wed Apr 03, 2013 8:44 pm
Forum: Tips and Tricks
Topic: Making articles editable *only* by Author
Replies: 14
Views: 11494

Re: Making articles editable *only* by Author

Dear Inula, Glad you found it useful! :) To edit the list that is being displayed, you should look at further customizing "articlelist.tpl" (the part below the {foreach from=$items item=entry} where the rows are created listing the articles). You will need to verify if you can use the same...
by manuel
Thu Mar 14, 2013 8:24 pm
Forum: CMSMS Core
Topic: [Solved] Breadcrumbs problem.
Replies: 6
Views: 3472

Re: Breadcrumbs problem.

Dear Delagardi,

Glad i could help out! :)
Feel free to edit your first post and add [solved] in front of the subject.

Greetings,
Manuel
by manuel
Thu Mar 14, 2013 8:00 pm
Forum: CMSMS Core
Topic: [Solved] Breadcrumbs problem.
Replies: 6
Views: 3472

Re: Breadcrumbs problem.

Dear Delagardi, This certainly isn't a dirty hack!! :D Editing the original files would be a dirty hack... Using module_custom to overwrite language strings is actually the proper way of changing language strings. This makes sure you can upgrade your cmsms without losing your customizations. If you ...
by manuel
Thu Mar 14, 2013 6:11 pm
Forum: CMSMS Core
Topic: [Solved] Thumbnails on news module.
Replies: 15
Views: 5403

Re: Thumbnails on news module.

Dear luya,

There is no way to shorten that.
If someone looks at your code they will be impressed that you are using that rather than thinking how ugly it looks ;)

Greetings,
Manuel
by manuel
Thu Mar 14, 2013 6:00 pm
Forum: CMSMS Core
Topic: [Solved] Breadcrumbs problem.
Replies: 6
Views: 3472

Re: Breadcrumbs problem.

Dear Delagardi, The text is contained in the language files located here: \modules\MenuManager\lang $lang['youarehere'] = 'You are here'; You can use http://docs.cmsmadesimple.org/customizing/customizing-language-strings to overwrite the language string. If you just change it in the original file, i...
by manuel
Fri Mar 01, 2013 10:32 am
Forum: CMSMS Core
Topic: [Solved] Thumbnails on news module.
Replies: 15
Views: 5403

Re: Thumbnails on news module.

Dear Luya, First verify if {$entry->file_location}/{$entry->fieldsbyname.test->value} produces a correct URL. If it does, you could try one of these: {CGSmartImage filter_croptofit='75,64,c' quality=65 src="`{$entry->file_location}/{$entry->fieldsbyname.test->value}`"} or {capture assign=s...
by manuel
Wed Feb 20, 2013 12:54 am
Forum: Modules/Add-Ons
Topic: Hide folders from Users
Replies: 3
Views: 1340

Re: Hide folders from Users

Dear Harry,

You can install the module and then select the wysiwyg of your preference in your user's profile. :)

ps: this is only for images uploaded through the wysiwyg though!

Greetings,
Manuel
by manuel
Tue Feb 19, 2013 11:30 am
Forum: Modules/Add-Ons
Topic: Hide folders from Users
Replies: 3
Views: 1340

Re: Hide folders from Users

Dear Harry, I haven't restricted folder access for users yet but please take a look at the TinyMCE module. In the "Profiles" tab, there is an option that might be just the thing you are looking for... Restrict user's dir access: This will restrict the filemanagement-capabilities of the use...
by manuel
Tue Feb 19, 2013 1:10 am
Forum: Modules/Add-Ons
Topic: [solved] FormBuilder 0.7 - Change the destination email
Replies: 9
Views: 5312

Re: [solved] FormBuilder 0.7 - Change the destination email

Dear Bob, I looked again and it appears i have been too quick telling you it worked! Because i tested the $form_id output before correcting the "if ($form_id = 4)", the $form_id got set to 4 inside the UDT! Your solution seems to work fine so i'll update the article accordingly until someo...
by manuel
Mon Feb 18, 2013 1:09 pm
Forum: Modules/Add-Ons
Topic: [solved] FormBuilder 0.7 - Change the destination email
Replies: 9
Views: 5312

Re: [solved] FormBuilder 0.7 - Change the destination email

Dear Robert, if($form_id == 4) { Thanks for noticing, i have changed the article accordingly! About the form_id: EDIT: I tested this and i do get the correct ID in the UDT... Oops, i tested this before correcting "$form_id == 4"... For the " *Call A User Defined Tag With the Form Resu...
by manuel
Thu Feb 07, 2013 11:11 am
Forum: CMSMS Core
Topic: [solved] News module: broken return to homepage
Replies: 12
Views: 4604

Re: News module: broken return to homepage

Dear Luya, http://localhost/~luya/cms/index.php/news/3/60/Another-test.html The index.php should indeed not be present in the URL. Please verify that you have set up Pretty URL's correctly: In the config: $config['url_rewriting'] = 'mod_rewrite'; + use the contents of the "doc/htaccess.txt"...
by manuel
Tue Feb 05, 2013 3:22 pm
Forum: Modules/Add-Ons
Topic: Prevent Users Editing Previous CGBlog Posts [Solved]
Replies: 4
Views: 1388

Re: Prevent Users Editing Previous CGBlog Posts [Solved]

Dear CAC,

Thx for the update :)

Greetings,
Manuel
by manuel
Mon Feb 04, 2013 11:06 am
Forum: General Discussion
Topic: [SOLVED] Smarty variable is empty in </__body>
Replies: 2
Views: 2521

Re: Smarty variable is empty in </__body>

Dear atz6975,

The reason for this is the "processing order".

You can read more about it here:
http://www.i-do-this.com/blog/75/Under- ... -Templates

Try defining the var at the top of the body instead of inside the head.

Greetings,
Manuel

Go to advanced search