AdvancedContent

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.

What do you think: Use the image uploads dir or just the uploads dir for {content_image}?

image uploads dir
23
68%
uploads dir
8
24%
don't care
3
9%
 
Total votes: 34

Andiministrator

Re: improve the content type "content"

Post by Andiministrator »

Did you select the Content type "Content extended" (when you edit a page in the backend)?
ndb
Forum Members
Forum Members
Posts: 17
Joined: Fri Dec 25, 2009 11:28 pm

Re: improve the content type "content"

Post 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?
JeremyBASS

Re: improve the content type "content"

Post 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...
ndb
Forum Members
Forum Members
Posts: 17
Joined: Fri Dec 25, 2009 11:28 pm

Re: improve the content type "content"

Post 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.
JeremyBASS

Re: improve the content type "content"

Post 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...
ndb
Forum Members
Forum Members
Posts: 17
Joined: Fri Dec 25, 2009 11:28 pm

Re: improve the content type "content"

Post 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
Attachments
content2.jpg
JeremyBASS

Re: improve the content type "content"

Post 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...
ndb
Forum Members
Forum Members
Posts: 17
Joined: Fri Dec 25, 2009 11:28 pm

Re: improve the content type "content"

Post 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.
JeremyBASS

Re: improve the content type "content"

Post 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
ndb
Forum Members
Forum Members
Posts: 17
Joined: Fri Dec 25, 2009 11:28 pm

Re: improve the content type "content"

Post by ndb »

ImgMode='DropDown' + dir='images' helped. Thank you for your patience :)
ndb
Forum Members
Forum Members
Posts: 17
Joined: Fri Dec 25, 2009 11:28 pm

Re: improve the content type "content"

Post 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?
NaN

Re: improve the content type "content"

Post by NaN »

Try Jeremys Superzizer Plugin ;)
JeremyBASS

Re: improve the content type "content"

Post 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
bryan

Re: improve the content type "content"

Post 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.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: improve the content type "content"

Post by hexdj »

@bryan:

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

Return to “Modules/Add-Ons”