Page 3 of 18

Re: improve the content type "content"

Posted: Sat Dec 26, 2009 9:22 am
by Andiministrator
Did you select the Content type "Content extended" (when you edit a page in the backend)?

Re: improve the content type "content"

Posted: Sat Dec 26, 2009 7:21 pm
by ndb
Ok so It works, well almost.
I was geting 404 when using ImgPicker. So I edited the plugin files and add ".." before adress for iframe src. But i still can't get DropDown to work. When I use DD and go to edit page i get only something like: "error reading list of files"
Anyone knows what is going on? If the plugin works for you guys then maybe I have something wrong with configuration?

Re: improve the content type "content"

Posted: Sat Dec 26, 2009 8:11 pm
by JeremyBASS
you can't use ImgPicker and dropdown in the same tag... but you 'd post your tag so it's hard to tell what could be wrong...

Re: improve the content type "content"

Posted: Sat Dec 26, 2009 8:51 pm
by ndb
I use:

Code: Select all

{content type='image' block='image1' label='Screen 1' ImgMode='DropDown'}
With ImgPicker the problem was that iframe was missing ".." before address in src and it was trying to load file from "admin/lib/FileMenager.." instead of "lib/FileMenager..." so I was thinking that with DropDown is the same problem but i just don't know what to change this time.

Re: improve the content type "content"

Posted: Sat Dec 26, 2009 9:15 pm
by JeremyBASS
It doesn't work in that combination... you'd want something like

{content type='image' block='image1' label='Choose the image'  dir='Header' }
{content type='image' ImgMode='ImgPicker' block='OrganizeImages' dir='Header' label='Organize Images'}


I'd also add the  filter="exclude:thumb_"
Giving you

{content type='image' block='image1' label='Choose the image'  dir='Header' filter="exclude:thumb_" }

So when you edit the pool of photos (block='OrganizeImages') you pick from (block='image1'), that you'll be picking up the edited photos only...

Hope this helps...

Re: improve the content type "content"

Posted: Sat Dec 26, 2009 11:19 pm
by ndb
Ok my problem looks like this:
Code I use

Code: Select all

{content}
{content type='image' block='image1' label='Choose the image' }
{content type='image' ImgMode='ImgPicker' block='OrganizeImages' label='Organize Images' }
What I see when I edit page

Re: improve the content type "content"

Posted: Sat Dec 26, 2009 11:45 pm
by JeremyBASS
you don't have the  dir='' as in the example I showed you ... as far as I know there is no defalut... you'll have to add it... 


so you want something like

{content}
{content type='image' block='image1' label='Choose the image'  dir='images/'}
{content type='image' ImgMode='ImgPicker' block='OrganizeImages' dir='Header' label='Organize Images'}


most likely...

Re: improve the content type "content"

Posted: Sun Dec 27, 2009 12:24 am
by ndb
According to help for content2 dir parameter is optional.
I add dir and nothing changed, still no sign of drop down list to choose image (not even a line of code for just empty div)

Maybe I will try previous releases of content2 tomorrow.

Re: improve the content type "content"

Posted: Sun Dec 27, 2009 1:41 am
by JeremyBASS
Hmm one last try... try





{content}
{content type='image' ImgMode='DropDown' block='image1' label='Screen 1' filter="exclude:thumb_" }
{content type='image' ImgMode='ImgPicker' block='OrganizeImages' label='Organize Images' }

see if that works...

going back version shouldn't help since it's created with the same code, less a couple extra params which can't induce the failure of the script like you saying your getting...

Code: Select all


$dropdown = create_file_dropdown($blockInfo['id'],$dir,$data,'jpg,jpeg,png,gif',
															   $optprefix,true,'style="'.$blockInfo['style'].'"',$fileprefix,$excludefiles);
,'style="'.$blockInfo['style'].'"',$fileprefix,$excludefiles is that only thing added... which they have defaults.. I know I have tested this on 5 sites now, all work ... it's a little odd...

cheers
Jeremy

Re: improve the content type "content"

Posted: Sun Dec 27, 2009 1:30 pm
by ndb
ImgMode='DropDown' + dir='images' helped. Thank you for your patience :)

Re: improve the content type "content"

Posted: Mon Dec 28, 2009 1:15 pm
by ndb
I know its not connected to conten2 but maybe someone will help me. So in my template I get the path to the img file from content2. Is there any way to get a thumbnail of that file based on this address?

Re: improve the content type "content"

Posted: Mon Dec 28, 2009 11:45 pm
by NaN
Try Jeremys Superzizer Plugin ;)

Re: improve the content type "content"

Posted: Tue Dec 29, 2009 5:37 pm
by JeremyBASS
If you do, try this version as it'll be the next one to be published... I has all bugs worked out now that have been reported.
SuperSizer v0.8

Re: improve the content type "content"

Posted: Tue Jan 05, 2010 9:19 pm
by bryan
bryan wrote: I just noticed that the option "Disable WYSIWYG editor on this page" no longer works with this content type.
I guess I should have added a follow up question with my previous statement:
Are there any plans to correct this? It would be nice to have a wysiwyg parameter that can be set to true or false.

Re: improve the content type "content"

Posted: Wed Jan 06, 2010 12:43 am
by hexdj
@bryan:

You can always add the HTML button to the toolbar in TinyMCE and you will be able to edit HTML