20
1 SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM 1 STOP IMAGINING & BELIEVE CCK FOR JOOMLA 1.7 CREATE ANYTHING. 6,619 Downloads 4.7/5 Rating from 219 Users on the JED 24,591 Forum Members 25,000 Forum Posts

SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

Embed Size (px)

DESCRIPTION

Get to grips with the core concepts of SEBLOD CCK for Joomla 1.7 as I walk you through the powers of this super component.

Citation preview

Page 1: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

1

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

1

STOPIMAGINING&BELIEVE

CCK FOR JOOMLA 1.7

CREATE ANYTHING.

6,619 Downloads

4.7/5 Ratingfrom219UsersontheJED

24,591 ForumMembers

25,000 ForumPosts

Page 2: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 201 WHAT IS SEBLOD CCK FOR JOOMLA?

• SEBLODCCKisacontentconstructionkitforJoomla1.7aswellasaSoftwareDevelopmentKit(SDK)

• Allowsdevelopers,designers&admin’stobuildanytypeofcontent:blog,classifieds,downloadsetc

• ExtendArticles,Categories &Users

2

Joomla! Only Installation

NAMEUSER NAMEE-MAILPASSWORD

NAMEUSER NAMEE-MAIL PASSWORDINTERESTSSOCIAL MEDIA PROFILESPROFILE PICTURE

Joomla! + SEBLOD CCK Installation

Page 3: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 3OKAY, SO IT’S A CCK, BUT WHAT IS THAT?02

• ACCK(ContentConstructionKit)allowsyoutocreatedifferent‘types’ofcontentbyassigningfieldsofvarioustypestoacontentitem.

• The‘content’partofaCCKisnomorethanacollectionofdatafieldsdisplayedinacertainformat.

• Let’stakea‘recipe’contenttypeforexample:

3

Page 4: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 4THERE ARE OTHER CCK’s, WHY CHOOSE SEBLOD?03

• VerywellintegratedintotheJoomlacore.

• StreamlinedAJAX interface,increasedproductivity.

• Lotsof field typestochosefrom.

• Unmatchedfield storage capabilities.

• ContenttypesareintegratedintotheJoomla!articlemanager.

• Powerful template engine.TemplatesarecreatedsimilarlytoJoomla!templates.

• Efficientfront-endcontentsubmission.

• ExtendSEBLODthroughnative Joomla! plug-ins.

4

Page 5: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 5USAGE SCENARIO’S FOR SEBLOD CCK04

• Classifieds Web Site-Usercontributedlistings.

• Download / Document Manager-ACL,fileuploadfields,documentdescriptionsetc.

• Comment Systems-Easilyaddcommentfunctionalitytoanycontenttype.

• Real Estate Listings-Powerfulsearch&listfeaturesmakefilteringcontentonanyfieldabreeze.

• Restaurant Guide-Search/listtypes&a3rdpartyGoogleMapsplug-in.

5

Theamountoffields(andtheabilitytoaddmore),powerfulsearchfeaturesandasolidtemplatesystemmeanthatthesky’sthelimitwhenitcome’stocreatingcustomcontenttype’swithSEBLOD2.0CCK.

Page 6: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 6THE HEART OF SEBLOD: FIELDS & CONTENT TYPES05

• Allcontenttypes,forexampleanimagegallery,consistofacollectionoffields.

• TherearemanyfieldsincludedwithSEBLOD,examplesinclude:

Text-StandardinputfieldCheckbox-StandardHTMLcheckboxSubmit Button-Tosubmitforms&searchesFile upload(chooselocation,1itemperuser,resizeupto6sizes...)Image uploadwithupto5auto-generatedthumbnails,theirsizedefinedbyyouFieldX-RepeatafieldXtimesGroupX-RepeatagroupoffieldsXtimes

6

Page 7: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 7CCK FIELDS06

• CreateyourownfieldsforAdminForm,SiteForm&Contentviewtypes

• Apply‘Typo’plug-instofieldcontent- Typomeanstypography,butnotlimitedtothat

H1,H2,H3...Italic,Bold,UnderlineLinktoContent-FieldvaluelinkstofullarticleOpenImagesinLightboxWindow-Applicabletoimageuploadfields

• Writeyourown‘Typo’plug-inanddowhatyouwantwiththefieldvalues.

• Use‘Live’values-GrabthevalueofaURLvariable,userprofilefield,articleIDetc.

• Showfieldvaluesas ‘form’,‘hidden’, ‘read only’ or ‘value’informs.

• SelecttheStorage Typeofyourfield.

7

Page 8: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 8

• Fieldscanbestoredinanumberofways:

• CUSTOM:introtextcolumnofthejoomla content tableas::field_name::value::/field_name::

• STANDARD:Withinanalreadypresentcolumnofanytable,eg:titleinJoomla content table

• Byaddinga new column to any tablepresentinyourdatabase

• Storedinatablerelativeonly tothecontenttypeinwhichthefieldiscreated

• JSON:Suitableifyou’restoringsmalleramountsoflessusedfields.

CCK FIELDS - STORAGE TYPES07 8

Whenaddingfieldstoanalreadypresentcolumn,creatinganewcolumninanexistingtableorcreatinganewtableforyourcontenttypeyouwillalwayshavethechoiceofsettingthetablecolumnproperties:char(25),varchar(25),text,int(11),datetimeetc

Page 9: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 9CCK FIELDS - STORAGE TYPES07 9

::sd_alias:: test ::/sd_alias::

Thevalueoff ield“sd_alias” isthenstoredintheintrotextcolumnofourcontenttable

Page 10: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 10CCK FIELDS - STORAGE TYPES07 10

::sd_alias:: test ::/sd_alias::

Thevalueoff ield“recipe_notes” isstoredinit ’sowncolumninthe#__cck_type_recipe table

Page 11: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 11CCK FIELDS - STORAGE TYPES07 11

• Thereareadvantagesanddisadvantagesforeachfieldstoragemethod

• Youneedtoconsiderafewthingswhenchoosingafieldstoragetype:

Exclusivity -Doyouneedthisfieldtobeavailabletoothercontenttypes?Storage Properties-Doyourequireaspecifictypelikechar,varchar,intetc?Third party access-Havingyourit’sowntablecolumnmakesthiseasier.Efficiency-Willtherebetoomanyotherfieldsintheintrotextcolumn?Considerstoringitinit’sowncolumnthen.Data Role-Ifthefielddataappearsmainlyinarticleintro’s,itmakesmoresensetostoreitintheintrotextcolumn.

Investthetimeplanninghowyourfieldswillmaptoyourcontenttype.Thiswillsaveyoualotofheadachesinthelongrunandwillensurethatyourcontenttypeisasefficientasitcanbe.Avoidnamingconflictswiththirdpartycckfieldsbyprefixingyourfieldswithaletterortwo.Iusemyinitials,sothefield‘tags’becomes‘sd_tags‘.

Page 12: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 12CONTENT TYPES08 12

• Thereare4typesof ‘clients’ toassigncontenttypefieldsto:

Admin Form-ThecontentcreationformintheadministrationareaofSEBLOD,i.e.TheArticleManagerscreen.Site Form-Thecontentcreation/submissionformintheJoomla!frontend,usersubmittedcontent.Content-Fieldsassignedherewillappearinthefullarticleview.Intro -Fieldsassignedherewillappearonlyinthearticleintroview.

• Eachclientcanhaveit’sown templateassignedtoit,grantingyoutotalcontroloverthedisplayofyourcontenttype’sdata/content.

• Eachclientcanhaveit’svery own set of ACLrules.FieldsofeachclientcanalsohaveACLrulesassignedtothem.

• Fieldsareaddedtoa‘position’ofyourchoice,thisconceptissimilartomodulepositions.

Page 13: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 13CONTENT TYPES - FIELD POSITIONS09 13

• Functionmuchthesameasmodulepositions.Acollectionoffieldsareassignedtoacertainposition,andthatpositionisthenrenderedinyourtemplate.

• Thedefaulttemplateseb_oneshipswith42fieldpositions.

• Eachpositioncanbeoverriddeninyourtemplate.

• Stylevariationscanbeappliedtoanyandallpositions.

Page 14: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 14CONTENT TYPES - FIELD POSITIONS09 14

TOPBODY

MAINBODY

Page 15: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 15

Page 16: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 16ACL & CONTENT TYPES10 16

• ACLrulescanbeappliedtoall clientsofacontenttype.

• ACLrulescanbeappliedto all fieldswithinaclient.

• ACLforpublication, edition & accessofcontent.

• Totalcontroloverwhocandowhat,whereandwhen.

Ingredients:

Download:red-pepper-soup-43.pdf

2 large red peppers1 large onion250g butter150ml vegetable stock250ml cream

Availableonlytorecipesubscribers

Page 17: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 17TEMPLATES11 17

• Extremelyflexible & powerfultemplatingsystem

• ResideinthenativeJoomla!templatesdirectory

• Templatesforform,content&searchtypes

• Overrides onitempositionsbasedontheirtype & client:

Youwanttospecificallystylea‘recipe’contenttype’spositionbutonlyinINTROviewYouwanttospecificallystyleacontenttypespositionsbutonlyina LISTview

•Createyourownvariationsandapplythemtoyourpositions:

YouwantsomecontenttodisplaybeforeandafteracertainpositionYouwanttomanuallyrenderthecontentofyourfieldsusingSEBLOD’SrenderingAPI

Page 18: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 18SEARCH TYPES12 18

• Createtailored‘search rules’foranycontenttype

• Definewhichfieldsuserscan&cannotsearchagainst.

• Choosetoshoworhidefieldsinthefrontend,orcreateyourowncustomform.

• Bind‘live’valuestothefield(s)you’researchingagainst.

• ACLrulesarefullyavailabletoallfieldsinyoursearchtype.

• Displaytheresultsofasearchinalist module.

• Styleyoursearchresultsthroughatemplateoroverride.

Page 19: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM

01 19SEARCH TYPES12 19

• Uselivevalues

• Choosesearchablefields

• Choosematchtypes

• Controlresultstemplate

...../search-results.htm?tagged=smokey

Page 20: SEBLOD CCK Presentation By Simon Dowdles - Joomla! Day South Africa 2011

BUILD ANYTHING.

NEXTUP:LIVEDEMO