Developing (v7+)

External link attributes?

Is it possible to assign attributes to an external link? When I click on the external link in the site map, none of the typical options (like "edit") appear. I would like to be able to add a description to the external link, so that it can be displayed …

TinyMCE custom styles not applying in 5.4

Reposting after no response in the Editing forum... Not sure if I've loused this up somehow or if there is a deeper problem. I have my custom styles appearing in TinyMCE but when I highlight some text and choose a style nothing happens. The styles p…

Link to Block from within the Dashboard

I wish to generate a link to a block from within the dashboard. I am developing a block and a dashboard to manage it. From within the dashboard page I can retrieve a Block ID (bID) for any and all instances of my block but how do I create a link to the…

content block not working properly after 5.4.0 upgrade (incl. fix)

hi. the content block in my c5 installation didn't load the tinyMCE editor anymore after i applied the 5.4.0 upgrade. it just showed the HTML formatted text in a textarea where the richtext-editor used to be. i already found a solution to this, but i d…

Database Queries

I am trying to get the numRows returned for how many blocks there are on a specific page. In my custom block, in view.php, I want to count the number of entries and then in display show 5 on one row 5 on next etc. So if I can look in the DB or che…

corecommerce SSL warning

My checkout has a SSL warning that says: warning contains unauthenticated content. Am i right in thinking that this is becuase i have http links in the page?? can a https page have no http links?

Where to add header items for block?

Where is the _right_place_ to insert addHeaderItem() calls to include stuff that _only_ my block's _view_ will require? Where is the _right_place_ to insert addHeaderItem() calls to include stuff that _only_ my block's _editor_ will require?

Custom Block View Tutorial

Attached is a white paper on creating custom block views. I am finding many C5 users do not understand this concept and even hesitate to modify purchased addons. I hope this is helpful. Please PM me if you have any additions or corrections and I …

truncate content block

Hello, Sorry if this has been answered before, i have tried searching though but couldn't seem to find a proper solution. Is there anyway of truncating a content block to a certain number of characters? The only way i've found to do it so far uses str…

Filter Posts