Silverstripe - Interesting Stuff
click here for the original websiteThis is a collection of all those little and large genius moments you get. You know what I'm talking about, when you've spent hours searching the internet for a solution, but no one quite knows the while answer. Then you crack it and feel like you've accomplished lifting a mountain from your path.
Thursday, 20 October 2011
Magento - sorting of the Layered JavaScript top.html menum, Alpha Sorting
Magento - sorting of the Layered JavaScript top.html menu
click here for the original website
Alpha Sorting
click here for the original website
Alpha Sorting
SET @i=0;
SET @j=0;
DROP TABLE IF EXISTS AAA_NEW_POSITION;
CREATE TABLE AAA_NEW_POSITION
SELECT e.entity_id AS 'entity_id',
vn.value AS 'name',
e.position AS 'old_position', @i:=@i+1 AS 'new_position'
FROM
catalog_category_entity e
LEFT JOIN catalog_category_entity_varchar vn
ON e.entity_id = vn.entity_id AND
vn.attribute_id = 33
ORDER BY vn.value;
ALTER TABLE AAA_NEW_POSITION ORDER BY name;
UPDATE AAA_NEW_POSITION SET new_position= @j:=@j+1 ORDER BY name;
UPDATE
catalog_category_entity e
LEFT JOIN AAA_NEW_POSITION np
ON e.entity_id = np.entity_id
SET
e.position = np.new_position;
DROP TABLE IF EXISTS AAA_NEW_POSITION;
Wednesday, 19 October 2011
Silverstripe - Activating Widgets
Silverstripe - Activating Widgets
click here for the original website
Monday, 17 October 2011
Magento - Layout Files, References, Elements, Attributes and XML
Magento - Layout Files, References, Elements, Attributes and XML
click here for the original website
click here for the original website
Wednesday, 12 October 2011
Sunday, 9 October 2011
Thursday, 6 October 2011
Wednesday, 5 October 2011
Tuesday, 4 October 2011
Silverstripe - Customise TinyMCE
Silverstripe - Customise TinyMCE
click here for a list of buttons
click here for information of how to insert the syntax
click here for the initial post that led me to these above answers
click here for a list of buttons
click here for information of how to insert the syntax
click here for the initial post that led me to these above answers
Subscribe to:
Posts (Atom)