Package attribute
Permalink 1 user found helpful
For a new theme I want to have a pagelist install with it which shows up thumbnails of pages, I have this all sorted but I have no idea how to install the 'thumbnail' attribute with my theme, I have looked at other packages but cant find any examples where this is done, this one you have to add it manuallyhttp://www.concrete5.org/marketplace/addons/thumbview-template/... but I dont want my purchasing clients to do this.
I know it is possible, I just dont know the syntax.
Thank you in advance
I know it is possible, I just dont know the syntax.
Thank you in advance
Hi you can do this in your package controller:
Perfect, ill just copy that in then?
add it to your install function.
You will notice i have created a attribute set.
If you find this correct please mark it as correct answer:)
Thank you!
You will notice i have created a attribute set.
If you find this correct please mark it as correct answer:)
Thank you!
Hmm hasnt worked for some reason
can you tell me the error?
here is an example of the install function.
here is an example of the install function.
It doesnt tell me much:
The following errors occurred when attempting to process your request: 1
Try the example i sent you. Uses the same syntax the i use in pixel
pro theme available in the marketplace
On 4/15/11, Concrete5 Community <discussions@concretecms.com> wrote:
pro theme available in the marketplace
On 4/15/11, Concrete5 Community <discussions@concretecms.com> wrote:
You sent me an example? What do you mean?
Yes i have upload a controller.zip look in my posts
On 4/15/11, Concrete5 Community <discussions@concretecms.com> wrote:
On 4/15/11, Concrete5 Community <discussions@concretecms.com> wrote:
Got it, sorry I'm not used to the attachments being there...
Take a look at my controller (attached), the example you gave me is a bit over my head :S sorry I'm still getting to grips with this.
If you send me you package controller i will sort it out for you and
attach it back
On 4/15/11, Concrete5 Community <discussions@concretecms.com> wrote:
attach it back
On 4/15/11, Concrete5 Community <discussions@concretecms.com> wrote:
Sorry wasnt around yesterday, yeah I attached it in the last message.
You where missing a model.
Plus I mage another comment on your controller regarding your page types.
Let me know how you get on!
Plus I mage another comment on your controller regarding your page types.
Let me know how you get on!
Ill have a try with this, Ill let you know in a bit.
With the If statement (remember I'm a bit of a novice) It will have to be something along these lines, although I don't really have a clue where to wrap it around or anything :/ would you be able to give me any clue as I cant really find an example in any free themes?
The controller you sent back still comes up with the same error :( cant figure it out.
Thanks
$ct = CollectionType::getByHandle($ctHandle, $pkg); if(!$ct){ $data['ctHandle'] = $ctHandle; $data['ctName'] = t($ctName); $data['ctIcon'] = $ctIcon; $ct = CollectionType::add($data,$pkg); } return $ct;
The controller you sent back still comes up with the same error :( cant figure it out.
Thanks