Converting or using custom theme from Atom 1.3.1 with 2.0.1

91 views
Skip to first unread message

Ben Stewart

unread,
Sep 10, 2014, 3:53:20 PM9/10/14
to ica-ato...@googlegroups.com
Hello everyone

I did do a bit of a search.    It would appear that we can not use our custom theme created for version 1.3.1 with version 2.0.1
Is there any way to convert the old one or?
If not what would be the best way to create a new one? 

Thank-you

~Ben

Dan Gillean

unread,
Sep 10, 2014, 4:11:49 PM9/10/14
to ica-ato...@googlegroups.com
Hi Ben,

With AtoM 2, we began using Twitter Bootstrap (2.3.2 I believe is the most current update we're using), and of course, the layout of everything overall has changed. To my knowledge, there is not an easy way to adapt old custom themes for use in the most recent version of AtoM. I think you would be better off creating a new theme - you can likely copy and adapt CSS elements from the old one, while adjusting them for use in AtoM 2.

The best way to create a new theme is to create it as a new plugin. We include the arArchivesCanadaPlugin as a reference model for developers interested in creating a new theme - it extends the base stylings of the arDominionPlugin theme, and includes a custom home page and custom header, to give a sense to developers of how we have implemented these things. I'd use the Archives Canada theme as your model - you can see what it looks like by navigating to Admin > Themes and selecting it, then saving - the page will reload with the new theme in place.

Once you have your new theme in place, you will often, when setting up the site in development, have to navigate to the new plugin and run "make" the first time, so the LESS compiler applies the theme. It's then advisable to clear the cache, restart your services, and repopulate the search index:

cd /plugins/arYourCustomTheme # navigate to the custom theme
make #run the make command
cd .. # navigate back up
cd .. # navigate back up to root
php symfony cc # clear the cache
sudo service php5-fpm restart # restart php5-fpm
php symfony search:populate # rebuild the search index

After that, if you've implemented the theme correctly, you should be able to use the GUI to change themes

If you need more guidance from a developer, let me know and I will see if they can add any additional information to this thread.

Cheers,


Dan Gillean, MAS, MLIS
AtoM Product Manager / Systems Analyst,
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at http://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/688fb428-0030-4ae3-bc1e-66333b386a53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ben Stewart

unread,
Sep 12, 2014, 3:19:44 PM9/12/14
to ica-ato...@googlegroups.com
Thank-you Dan
That looks good I will give this a try next week.

Cheers
~Ben
Reply all
Reply to author
Forward
0 new messages