Page 2 of 18

Re: improve the content type "content"

Posted: Wed Nov 04, 2009 8:33 pm
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)

Re: improve the content type "content"

Posted: Wed Nov 04, 2009 8:36 pm
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...

Re: improve the content type "content"

Posted: Mon Nov 09, 2009 5:07 am
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?

Re: improve the content type "content"

Posted: Mon Nov 09, 2009 4:16 pm
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...

Re: improve the content type "content"

Posted: Tue Nov 17, 2009 5:55 am
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.

Re: improve the content type "content"

Posted: Sun Nov 22, 2009 12:40 pm
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

Re: improve the content type "content"

Posted: Sun Nov 22, 2009 7:12 pm
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

Re: improve the content type "content"

Posted: Sun Nov 22, 2009 8:09 pm
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.

Re: improve the content type "content"

Posted: Fri Dec 11, 2009 10:14 pm
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';

Re: improve the content type "content"

Posted: Sun Dec 13, 2009 4:05 am
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

Re: improve the content type "content"

Posted: Sun Dec 13, 2009 8:12 pm
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

Re: improve the content type "content"

Posted: Mon Dec 14, 2009 1:57 pm
by bryan
I just noticed that the option "Disable WYSIWYG editor on this page" no longer works with this content type.

Re: improve the content type "content"

Posted: Fri Dec 18, 2009 2:35 pm
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?

Re: improve the content type "content"

Posted: Tue Dec 22, 2009 6:41 pm
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

Re: improve the content type "content"

Posted: Fri Dec 25, 2009 11:37 pm
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.