Skip to main content

Posts

Sitecore - Module based approach

​ Okay so this is something I picked up from a recent developer group thingy and have been annoying my colleagues about this since then. Instead of thinking Sitecore as one project (MVC) solution why not treat it like a module/deliverable based implementation. I have created a sample solution which is here: https://bitbucket.org/ali_nahid/sckitchensync   The idea is pretty simple (Just like DDD pattern): You get a rough idea of the entire implementation like what are the  deliverable , functionalities etc etc and group them. Then just like the way you plan renderings on your page you plan bunch of different modules to implement in your solution. In my case I divided my sitecore implementation into the following modules: 1.       The core: This module contains the layouts and core renderings. In my case 1 standard layout that just defines the top level placeholders. Like header, footer, content etc. And a “_Ma...

Customising Sitecore's Rich Text Editor. R u Kidding me?

theProblem: The front end ( html and css ) is set up such a way that for the description text form a sitecore content needs to have a <p> tag wrapped around it.  Now, I'm sure just by reading the above 2 lines you are thinking "WOW that's really simple and every RTE does that by default. So, continuing to reading this is useless and this guy is clearly dumb enough." "sayth whath" - said thor Well Yes and No. This is what I found: So by default the RTE wraps texts in a <p> tag =  TRUE.  BUT the catch is you will need to hit a enter or copy paste multiple paragraph. Then the RTE will clean the HTML and in the process it will wrap each para in a <p> tag. NICE. Of course there's a setting for it that you can modify and instead of <p> you can have <br/> and so. <setting name="HtmlEditor.LineBreak" value="p" /> And no you can't have anything that you want there.. there's a limit...

Shame on you for calling me a "Coder".

I usually don't watch the Morning Show on channel 7 unless I am in a waiting room or with my girlfriend, in both cases changing the channel is beyond my reach. This morning I was in the airport waiting for my flight and as usual the morning show was on TV in the waiting room. I came across this weird interesting topic, as the title of the news was "Beauty and a Geek -- Victoria's secret model and codes in spare time". Similar subheadings kept rolling in at the bottom of the screen as the interview went on. I will quote few of those "part time coder", "she codes in her spare time", "beauty with brain ( well this one wasn't a heading but something similar that the reporter said )". Seriously WTF !! Is it only me or everyone can spot why I am ranting about this ? I will point it out just in case: 1. Using words/terms like "coder".. is so wrong . This is 2014 .. Seriously who says words like that? And I'm unaware...

Do I like Drupal ?

Caution: The title might be somewhat misleading but kind of relevant. For the next few para I’m going to rant about drupal. (so all the drupal lovers please dont read beyond this point. Also this is my personal biased POV. I don’t gain or loose anything for or against drupal). Being said that : Here it goes: Do I like Drupal:  Hell No (so far) Why ? 1.  It’s shit. I think it’s an abomination of anything called CMS.  2.  It’s a VB (visula basic) in PHP. And as a developer I’ve never liked visual basic. And drupal is similar in extra that it is in PHP. So yes .. figure the rest out. 3.  It works well for the people who think “installing/upgrading their mobile OS makes them like developers hence Mr. KnowItAll.”. Guess what ? it doesn’t and that’s not what developers do. So, you installed few modules in drupal and made it work for the purpose - this doesnt qualify you as a developer nor makes drupal *really easy and nice CMS*. Eventually this *install ...