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

NaN

Re: improve the content type "content"

Post by NaN »

I'm using the modified content type in a live site and never had that error.
Can you post the full error message?
So i can check out whats wrong in what line etc.
(I guess i did some changes to the file i'm using)
JeremyBASS

Re: improve the content type "content"

Post by JeremyBASS »

Yeah I can do this later today.. also I found a few other error in there that I'll be fixing too... I'll have to get back in a few hours...
User avatar
tinhat
Forum Members
Forum Members
Posts: 65
Joined: Fri May 23, 2008 6:33 am
Location: Sydney, Australia

Re: improve the content type "content"

Post by tinhat »

alby wrote:
jmcgin51 wrote: Hopefully I'm wrong... :)
wrong  :)
I have not yet seen (for lack of time) and so I don't know if same level but calguy1000 has implemented a something like this in 1.6

Alby
Could someone please clarify this? My understanding is that calguy's CGContentUtils will not provide this sort of functionality until CMSMS 2.0?
JeremyBASS

Re: improve the content type "content"

Post by JeremyBASS »

tinhat wrote:
alby wrote:
jmcgin51 wrote: Hopefully I'm wrong... :)
wrong  :)
I have not yet seen (for lack of time) and so I don't know if same level but calguy1000 has implemented a something like this in 1.6

Alby
Could someone please clarify this? My understanding is that calguy's CGContentUtils will not provide this sort of functionality until CMSMS 2.0?
As far as I can tell no... also sadly none of this is in the core of 2.0...

http://viewsvn.cmsmadesimple.org/filede ... ontent.php



Thou IMHO I think these need to be added... it made my client super happy and took a wildly long page and put it in order...
Cheers
Jeremy

Also I have uploaded what I did with this great addtion... so as you can see from only looking at the two tabs I put up, how much of a pain it was before this to edit the pages, no drop downs or anything... gosh that sucked...
Attachments
admin_page_TAB5.png
admin_page_TAB2.png
admin_page.png
Last edited by JeremyBASS on Mon Nov 09, 2009 4:18 pm, edited 1 time in total.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: improve the content type "content"

Post by hexdj »

NaN:

Thank you so much for this plugin. This should really be the default Content tag that comes with CMS. I hope the devs consider adding this soon, it opens the door for so much improved behavior.

For example the default "specific page metadata" in the Options tab I consider useless, when I have a user update their own website they're not gonna remember how to write an html meta tag like <meta name="keywords" ....  instead it's much easier for me to add this to their template:

Code: Select all

<meta name="keywords" content="{content block='Keywords' page_tab='Meta' wysiwyg='false'}" />
Then all they have to do is enter whatever keywords they want in each individual page in their site in the 'Keywords' content block, and as an added bonus the page_tab='Meta' option creates an extra tab for Meta tags at the same level of Main/Options/Preview.

This is simply AWESOME.
Last edited by hexdj on Tue Nov 17, 2009 5:58 am, edited 1 time in total.
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

Re: improve the content type "content"

Post by plger »

I agree with the others: very good work NaN! This has an amazing potential.

Just my two cents : when cmsms added the "image" dropdown to the core content type, I must say that I was quite, unimpressed... most of the users I work with barely figured out that each file has a distinct uri, so needless to say when I showed them the image dropdown they just looked at me and nodded, and never touched it.
It would be nice if users could see pictures when selecting them, and it'd be ever nicer if there was a uniform way to do this everywhere in cmsms.
See for example http://forum.cmsmadesimple.org/index.php/topic,38867.0.html.

If you are interested, NaN, I'd like to try and find an interesting way to add a similar featured to your content type.
Plger
JeremyBASS

Re: improve the content type "content"

Post by JeremyBASS »

plger wrote: I agree with the others: very good work NaN! This has an amazing potential.

Just my two cents : when cmsms added the "image" dropdown to the core content type, I must say that I was quite, unimpressed... most of the users I work with barely figured out that each file has a distinct uri, so needless to say when I showed them the image dropdown they just looked at me and nodded, and never touched it.
It would be nice if users could see pictures when selecting them, and it'd be ever nicer if there was a uniform way to do this everywhere in cmsms.
See for example http://forum.cmsmadesimple.org/index.php/topic,38867.0.html.

If you are interested, NaN, I'd like to try and find an interesting way to add a similar featured to your content type.
Plger
IMHO if a class is added to the options tag, it'd be super simple for it to be done in the theme... I was hoping to work on mine today so I'll test it out and post the resulates... I still own NaN the errors... thou I think I fixed most of them now :D  -Jeremy
NaN

Re: improve the content type "content"

Post by NaN »

Feel free to improve that code as much as you can :D
The code is - at the moment - a bit ugly.
E.g. the very ugly construction to achieve the block_tabs what causes errors in IE.

@plger:
I already planned to integrate a date and a filepicker with upload function.
But if your filehandler module works as promised i don't need t reinvent the wheel.
I'll give it a try. Should be easy to integrate.

But at first i want to clean up the code and try to solve the block_tab issue.
Anyway, nice to see that this idea can be usefull also to others.

Thanks for feedback and suggestions.
bryan

Re: improve the content type "content"

Post by bryan »

What a great contribution! Thank you so much, NaN. Works perfect in 1.6.6.
NaN wrote: There is no english documentation available in the plugin help for now but i will translate it if there is interest.
I changed the documentation of your original plugin file to english for anyone whose interested. Just remove the '.txt' extension and upload it to the plugins directory.

I also made Content (Extended) the default Content Type by modifying line 75 of admin/addcontent.php
I Changed...

Code: Select all

$content_type = 'content';
To...

Code: Select all

$content_type = 'content2';
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

JeremyBASS

Re: improve the content type "content"

Post by JeremyBASS »

Here is a new version with some of the fixes to the error I found... One major  one would cause a js error in IE in the tab making a page un-editable... Also I added bryan's English translation (cheers to you) and put in the image's file filter params and the element inline style params in there too...

So the errors I fixed where :
1.)Notice on the $multiple
2.) js error that resulted from a typo of </optgroup
3.) cleaned up the code a little... just a little

I think this is coming along nicely, nice to see people working together :D ... Also I started to add a param for ImgMode that would allow for the dropdown or a iframe to which imagemanger would be used inline like my cars mod... I just run out of time today but the coding there will be super simple to fit in I believe. Cheers
Jeremy
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

[The extension txt has been deactivated and can no longer be displayed.]

JeremyBASS

Re: improve the content type "content"

Post by JeremyBASS »

Hey so I had some time and got the image manger in... so with the new param ImgMode ie:

ImgMode="DropDown"
ImgMode="ImgPicker"

you can change back and forth.... but I didn't get time to add the selection part of it... thou you could just do one in a tab let's say to select and the other in a tab of its own to mange the images on the fly... that's simple... ok that sounds better now that I think about it... so... here it is....

Cheers
Jeremy
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

[The extension txt has been deactivated and can no longer be displayed.]

Last edited by JeremyBASS on Sun Dec 13, 2009 8:23 pm, edited 1 time in total.
bryan

Re: improve the content type "content"

Post by bryan »

I just noticed that the option "Disable WYSIWYG editor on this page" no longer works with this content type.
Andiministrator

Re: improve the content type "content"

Post by Andiministrator »

I tried to use it with content type='image' as following:

Code: Select all

{content type='image' block='image1' page_tab='Header' dir='Header' label='Bild 1' class='header_img' assign='head_img_1'}
{content type='image' block='image2' page_tab='Header' dir='Header' label='Bild 2' class='header_img' assign='head_img_2'}
{content type='image' block='image3' page_tab='Header' dir='Header' label='Bild 3' class='header_img' assign='head_img_3'}
The new Tab "Header" shows no fields for images.

Then I tried to specify the ImgMode:

Code: Select all

{content type='image' ImgMode='ImgPicker' block='image1' page_tab='Header' dir='Header' label='Bild 1' class='header_img' assign='head_img_1'}
{content type='image' ImgMode='ImgPicker' block='image2' page_tab='Header' dir='Header' label='Bild 2' class='header_img' assign='head_img_2'}
{content type='image' ImgMode='ImgPicker' block='image3' page_tab='Header' dir='Header' label='Bild 3' class='header_img' assign='head_img_3'}
With this, all tabs contain no content anymore.

Any ideas?
Last edited by Andiministrator on Fri Dec 18, 2009 2:37 pm, edited 1 time in total.
JeremyBASS

Re: improve the content type "content"

Post by JeremyBASS »

ha I knew the lable 'ImgPicker' would bit me.. it should be more like ImgOrganizer or ImgManager

you want

{content type='image' block='image1' page_tab='Header' dir='Header' label='Bild 1' class='header_img' assign='head_img_1'}
{content type='image' block='image2' page_tab='Header' dir='Header' label='Bild 2' class='header_img' assign='head_img_2'}
{content type='image' block='image3' page_tab='Header' dir='Header' label='Bild 3' class='header_img' assign='head_img_3'}
{content type='image' ImgMode='ImgPicker' block='Organize Images' page_tab='Header' dir='Header' label='Organize Images'}

atm you can’t pick from there... it's just the "Image Manager" inline

Sorry for the confusion there
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 »

I cant get this to work. Can someone please tell me step by step how to do this?

I download 2 files and upload them. One to plugins direcotry (function.content2.php) and the other one in lib/clasess/contenttypes/ then I go to edit my template. I tried to add

Code: Select all

{content type='image' block='image1'}
or
{content2 type='image' block='image1'}
And all i get is only another normal content edit field when i edit my page.
Locked

Return to “Modules/Add-Ons”