Override HTML export defaults - org-mode

I use orgmode to capture meetings minutes and I do HTML exports afterwards to publish them on our team's website.
I would like to set some export options automatically. But the defaults created by org-insert-export-options-template do not suit my needs, I would like to tweek them and I could not find the right way to do this in the documentation. I understand this should be easy so I'm puzzled to be stuck by this issue.
Can someone help me out ?
Thanks

There are many things you can customize for HTML export:
HTML preamble and postamble
Style (CSS)
You can customize the defaults so you don't need to add an options template (org-customize - Export - Export General)
XML declaration (org-customize - Export - HTML)

Related

Is it possible to have global configuration values for a webspace in sulu CMS?

is there a way to have (kind of wordpress style) some global configuration values in sulu per webspace?
Reason is, that our SEO guys would like the page title after a | in the meta title on every page, but I would like to share the template accross multiple webspaces.
If I could set just a few values different for the webspaces, I could use the as parameters to the template.
Thx a lot!
Andreas
You can create a Snippet for this. And use snippet areas / default snippets. To load this snippet and use its data.
http://docs.sulu.io/en/latest/cookbook/default-snippets.html
So you could create a settings snippet. With all settings you want and then use the sulu_snippet_load_by_area twig extension to load this data after you did select that snippet in the webspace setting for that area.
there is currently no way to manage this in the UI of sulu - we always use twig globals to inject values like that.

Magento - Import/export custom options

by default in Magento, it is not possible to export a products' csv file containing the custom options. Each product on our site contains tons on custom options and we need to upload from scratch 400 products. Anyone has a non-commercial solution for this or can point me in the right direction? Do I need to create a custom Dataflow?
Any help is appreciated.
did you check out MAGMI? This is great and free importing tool for Magento, supports products custom options as well. Check out this cheat sheet for getting an idea how your CSV must look like. The format is like following (first line is CSV header defining the parameters of your custom optinos - label:type:flag whether is required option:position)
Size:drop_down:1:2 Design:file:0:1
Small|Medium:fixed:5|Large:fixed:10 Design image file:fixed:0:Ref file::jpg,png:500:300
XS:percent:5|S:fixed:5|M|L|XL Design image file:fixed:0:Ref file::txt:500:300

How do you create editable content in a ConstantContact custom template?

I'm forced to use ConstantContact as a development platform for email marketing, and it offers some custom XHTML tags like <Property> and <Article>, and the documentation over at http://constantcontact.custhelp.com/cgi-bin/constantcontact.cfg/php/enduser/std_adp.php?p_faqid=2215 seems to assume that adding such a tag into your custom XHTML template will simply allow the property to be editable in the "control panel" area rather than hidden deep in the HTML code.
My client is not experienced with hunting through code to find the area that needs to be edited, so I'd like to make it easy on them and allow the text to be editable in a textarea right from the control panel. This is possible with the "Greeting" property. Can I create custom properties in ConstantContact much like the default <Greeting />, which can be edited right from the wizard?
Since I didn't see a rated answer, I figured I'd add one.
Just to clarify, Constant Contact is a crap service that skates by on name recognition and clients too ignorant to know there are better options. (No offense to your client...)
Now, to answer your question, there is no way currently (4.13.13) for you (or any developer outside of the Constant Contact fortress) to create a custom template that can be used within their WYSIWYG editor.
The only way to have a truly custom design converted into an editable template is to send Constant Contact your art files and pay them $600 to create it for you.
http://www.constantcontact.com/services/email-marketing/index.jsp#template-creation
So I feel your pain, as I've been in this exact situation.
I want to add to this as I just faced a similar problem. After spending 6 hours building an HTML and testing it via MailChimp - I prefer it 100% - I had to then port it across to Constant Contact (CC). They have an advanced editor but as the persons above mentioned, you cannot add editable areas - it looks like you need to use XHTML for that...?
However that all said, my work around was to take a template they provide that looks as close as possible to my design and then manipulate it as you get to edit the HTML for those areas. I have to say, I was able to get my email to almost 100% the same - not being able to edit the disclaimer stuff at the bottom was a pain.
The only reason I couldn't get them to move to MailChimp - a 100% superior bit of kit - was because their CRM system is tied up with CC.

Tool to diff webpage semantic structure rather than content

Does anyone know of any tools that allow diff'ing between two web pages semantic markup rather than content?
Cheers.
No, but you might have more success if you break it down into two steps:
Remove content
Diff
You could try using Pretty Diff tool. It would require a minor customization to the markup beautification component so that content components are set to empty strings.
Look at http://prettydiff.com/markup_beauty.js
Change lines 554, 557, and 560 to:
build.push("know text");
These change would actually need to occur in the larger prettydiff.com/prettydiff.js, but now you know where to look. Once done you can run all this off your local.
All you will need is:
HTML of http://prettydiff.com/
prettydiff.com/diffview.css
prettydiff.com/pd.js - this is the DOM interface between the application and the HTML
prettydiff.com/prettydiff.js - this is the actual application code.
I may write this concept of ignoring content into the tool as an option.

How do I disable the titlepage when generating a PDF via DocBook and FOP?

Not that it is all that entirely practicle, I have a particular customer that is wanting to turn off the title pages in their PDFs that are getting generated. I looked and looked through the DocBook FOP parameters and documentation and couldn't find a way to disable the titlepage. I found ways to customize however.
Use a PDF filter and strip away the first page?
I ended up changing the document type from a book to an article. This removed the title page and everything else not needed.
I've just started looking into docbook and this is also what I'm trying to do at the moment. As far as I've read it is suggested to create a custom titlepage xsl (which could be genereted from your own titlepage.xml file - sample could be found under docbook-xsl-ns-1.76.1\template)
It's explained here : http://www.sagehill.net/docbookxsl/HTMLTitlePage.html
You simply have to add this to your stylesheet:
<xsl:template name="book.titlepage.recto"/>
<xsl:template name="book.titlepage.before.verso"/>