I've read a bit about rich snippets and I'm interested in the reviews part.
Is there a way to add the TripAdvisor aggregate reviews dynamically as a rich snippet without "hard-coding" the number of stars and a review?
From what I've read rich snippets are not dynamic, so I can't add a link or a tag for example, that would automatically just load my star ratings and the text of the latest review (just like a widget would do).
Is there?
The site is created in Joomla and I've installed J4Schema to add rich snippets.
Figured it out eventually.
Rich snippets are currently a "manual thing". Meaning that you will insert them by hand in your code, and you can reference TripAdvisor externally, but this will not create a link to the TripAdvisor account.
Google, at some point (in my case, after 6-8 months) will process these rich snippets, and will show them for the search result in question.
Also, a periodic update of these snippets is to be maintained to insure relevance.
Related
I have a lot of ASCII docs at different locations and I want to create an index page which should render these documents. But the condition here is that I want to list all the document link on the index page and if the user clicks on any link then only the document should be displayed. I don't want to display the documents below the table of content. I just want to display the table of content on the index page.
Is there any way to do this?
If I understand you correctly, you wish to generate a multi-document website, but you want an index page that displays just the TOC, with the other documents served elsewhere. I believe the best way to get this effect would be to generate chunked XHTML output using the DocBook toolchain. I believe this should be possible with Asciidoctor tools, but I have only implemented this particular post-rendering toolchain with the original (Python-based) AsciiDoc rendering tool, as documented here. This setup is configurable to generate a TOC index page that links to chunked output (you can configure the level of chunking).
As you have already figured out, AsciiDoc's automated TOC generation only works on the present document, which requires including the subordinate document to get their headings for the TOC. I can think of ways to sort of game this, such as to include just the heading of the included document (include::path/to/document.adoc[lines=1]) and then hiding even those headings with CSS or something. The problem is, the links in the TOC will be pointing internally, so you'd need to handle that somehow.
Another way is to use any of the static-site generators that support or can be readily extended to support AsciiDoc. What you're talking about is not an out-of-the-box feature that I'm aware of, but they all at least make it possible to generate an organized TOC-type navigation.
I have a joomla site and would like to integrate some old unfinished webcomics to it, so I can pick them up where I stopped in a CMS that won't leave me in an absolute frothing rage (thanks, wordpress).
I've got some experience with Joomla and I believe it would be a pretty good platform for managing multiple comics... except for the small issue of horrid navigation between pages/articles. Joomla's integrated article navigation is a humble but passable start, but if you intend to use categories to organize chapters then getting from the end of one to the beginning of the next is... yeah. This is a pity, as Joomla's category and article management options are beautiful for archiving and presentation, and adding gantry 5 to it means a great deal of control over the reading experience. Basically, joomla has pretty much everything I want, except for the navigation.
Ideally, what I'd like to be able to accomplish for comic navigation in joomla is:
Clickable full-article-image leading to next article/page
Prev/next article buttons (already available)
Prev/next category buttons (do we have those?)
The latter two in a module I can choose where to publish (optional)
And this is it, basically. I understand that implementing the first could be very hard without some major template customization, in which case I'd be willing to insert the image as a link in the article body... but only if there was one single code I could use, like the one that generates the next category article button. Because I'm not willing to create hundreds of menu items to generate links page-by-page.
So is any of this doable?
This is a quick answer but too much for a comment. I'm assuming since you are on SO that you don't mind coding (as opposed to just configuring).
I think you need to do two things. First you need to create a pagination.php for your template. This will let you really super control what the pagination looks like. You can have images, special css and js, whatever you want. You can also add the "last" and "first" options.
I think you need to make a new plugin to replace the core pagenavigation plugin and that also generates the previous/next category links. (Or I guess you could make one just to do categorynavigation depending on what you want.) HOWEVER, it seems to me that there is data on the sibling links that is already being generated in the content category model so you might be able to use that. (Check the code; I think there was never a UI for it, but it is there. Even if it isn't there, siblings are very easy to obtain in nested sets)
The other thing you can really think about if you go that route is changing the whole thing somewhat to use a module that gets the current ID and category ID from JInput. You might also be able to use JPagination. The important thing, however is that you make sure to do the caching the way the pagination that is there does it. In other words you really want to cache the whole list in the order you want so you are not running so many queries and slowing your site down. You may want to look at the categories and category modules to get some ideas about the queries to do.
Hope that gets you started, but it is definitely something you can do without too much trouble.
I've created an alternative layout for one of my articles which can be applied successfully, but as has been highlighted in various forums: if you view the article using the Single Article menu type the alternative layout doesn't get applied because of an XML override.
I have a Joomla site that is setup for Sales and Support where the article info such as date, hits etc is useful but on the marketing side none of that is needed, hence an alternative layout would work well.
I want to know how to enable my alternative layout using the Single Article menu type - I've already got the layout how I want it (testing it by having it overwrite default.php) but want to set it up as marketing.php instead and only have it applied to what is needed.
You're probably not going to like this answer because you have already written you're alternate view. If you were rewriting it to begin with, why would you not write in a way that the side bar parameters (date, hits, ect) are within a container that is only loaded conditionally. This way you would only have one view to worry about and a lot less headaches.
I need to create a solution, which allows a database driven catalog to be generated.
Assume, there are a bunch of products, images, prices, other details, and admin can generate catalogs based on "templates".
These templates essentially are "styles" of pages. For instance, style 1, could have 4x4 layout (16 products, with image and other attributes), hence on each page, upto 16 products and details could be displayed. Style 2 could have 2x2 layout, 4 products, but more detail. Admin can pick and choose different styles in a catalog.
Once the catalog is generated, it needs to be put up for either web viewing (lower fidelity) and/or print publishing (higher fidelity).
I would like help in determining the optimum stack to use, particularly, to "code" template and consequently to generate the PDFs.
Factors to consider
Minimum coding effort (reuse commercial or foss)
I will prefer an existing software which can create/edit "template" so I don't have to do that. I can simply get the license and reuse that functionality.
What I have considered so far is the following
Adobe XFA Forms as templates, connected to database to generate PDF.
I not sure which program can generate XFA templates. Acrobat X is an option however it does not seem to have control for adding images. The LiveCycle Server seems to be an overkill.
Use iText library, no idea if templates are possible or not, generate for web/print. Has good support for size/quality of catalog to print.
Use Open office, make template, and write the glue to retrieve data and generate an open office doc, which can easily be converted into html/pdf. No idea how tough/easy this is.
EDIT: Adobe Framemaker allows templates - I am evaluating if it can do the job that i have in mind. I will post an update once I am done.
I have no experience with any of these technologies, so if you can guide/rate them, or add other options that I did not consider.
At this point I am language agnostic. Alot of libraries provide hooks from various languages, so I don't think that will be a problem. If your solution is specific to foo language, please mention it as well.
Thanks for taking the time.
There is a followup question I asked on graphicsdesign exchange. https://graphicdesign.stackexchange.com/questions/2318/use-data-merge-of-indesign-using-console-or-through-an-api
How about Adobe inDesign Data Merge. And video here
Pretty easy to use aswel.
TCPDF (PHP) would give you quite a bit of control, and has lots of example code.
http://www.tcpdf.org/
I've used it before, it's not too hard to figure out.
I'm not sure if its a good fit, but maybe http://issuu.com/#whatIsIssuu
I have created a blog in drupal using CCK and taxonomy.
I wish to display my posts in a timeline, according to the posted date (using views).
So far I have created a listing of the post titles on a timeline.
I now want to display the posts using ajax, wherein clicking on a post title will load the content of that node on the same page. Going ahead I'll add each fetched node into a ul tag and thus create a carousel kind of display of all fetched posts so far.
Whats the best way of achieving this, considering that I have enough knowledge to create a custom module.
Here's where I got my idea from.
http://www.jvm-neckar.de
Try the aptly named http://drupal.org/project/timeline project. I used it long time ago... its a nifty module and you can visualize your various posts on a scrollable timeline. Posts that are frequent will be together and posts that are apart (in time) will be apart -- its all scaled accurately. It has integration with views, of course.
I'm not sure about whether it will meet your exact requirements. Check out an example here:
http://simile.mit.edu/timeline/examples/jfk/jfk.html