simon dowdles - seblod cck
TRANSCRIPT
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
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
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
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
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.
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
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
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
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
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
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‘.
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.
SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM
01 13CONTENT TYPES - FIELD POSITIONS09 13
• Functionmuchthesameasmodulepositions.Acollectionoffieldsareassignedtoacertainposition,andthatpositionisthenrenderedinyourtemplate.
• Thedefaulttemplateseb_oneshipswith42fieldpositions.
• Eachpositioncanbeoverriddeninyourtemplate.
• Stylevariationscanbeappliedtoanyandallpositions.
SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM
01 14CONTENT TYPES - FIELD POSITIONS09 14
TOPBODY
MAINBODY
SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM
01 15
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
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
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.
SEBLOD CCK FOR JOOMLA 1.7 | Simon Dowdles WWW.SEBLOD.COM
01 19SEARCH TYPES12 19
• Uselivevalues
• Choosesearchablefields
• Choosematchtypes
• Controlresultstemplate
...../search-results.htm?tagged=smokey
BUILD ANYTHING.
NEXTUP:LIVEDEMO