I've created a pdf document using iText which catalogues my music collection grouped by artist, I've used an example from the book iText in Action to create a TOC which sets up links to jump to the selected chapter. All is working as expected. What I would like to add on every chapter is a link to return to the page in the TOC that I was in prior to clicking on the link. I can't see anything in the book which explains how to do this.
Related
I have a website that's been running for over a year. The overview is getting lost in the Articles doctype and I've been asked to change the file structure from Articles/Article to Articles/Year/Month/Article.
In short, the admin opens Umbraco and sees the Articles and clicks the arrow to see all the articles. It then takes a couple of minutes since the are all loaded. Instead I want a map structure that devides the articles into year and month published.
Since i'm talking about 5k articles, I can't really do this manually.
Any advice?
You could do 2 things:
Create a simple script which moves all articles into a year/month folder structure. Should be pretty simple to make.
Add a List View content type on your "Articles" template. It will give a searchable list with all 5K articles. It will prevent the loadtime in Umbraco UI. You can see how the list view works here: http://www.robertgray.net.au/posts/a-first-look-at-umbraco-container-content-types
You need to look at the UrlProvider and ContentFinder configuration in your umbraco instance.
Shouldn't require any manual editing of the articles provided they were posted on the days you would like them to display as.
Take a look at this: https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/
I have a query regarding CQ. Your reply will really make the difference to my understanding.
In other CMS like Vignette, content authors create the contents separately (not directly on the page) for ex. products details and then those contents are iterated / processed to display on the page. But in CQ, the scenario is other way round. Authors directly create the content on the page. Now if same content is needed on other page, how will that be re-used ?
Regards,
Ronak
Content can be reused across pages via Reference components. From the docs:
The Reference component lets you reference text in another part of a
CQ based website (within the current instance). The referenced
paragraph will then appear as if it was on the current page. Instead
of referencing a specific paragraph, the path can also be modified to
specify an entire [paragraph-system]...
There are some other techniques for sharing content and reference data across pages, including inheritance and "data components," described in this SO Q&A.
Sorry for the newbie question:
I have looked at several posts on how to get a cursor to automatically be in a particular form field, but I cannot find an answer to my specific problem. I am working from a Google form that I've done some customization on, so I can't find the elements that the other posts are referring to. I would like to have the cursor automatically appear in the Scan Barcode field on: http://people.virginia.edu/~ag5vy/catstats.html.
On a website, I have a section where I put a new page every week. I'd like to convert this to a system using tt_news. How do you suggest me to import the pages (more than 100 pages) to tt_news? Can I do it using a simple SQL query, or should I write a custom PHP script to perform the importation? Is there already an extension that exists that could help me performing this task?
It doesn't really matter to me if I simply build news liked to existing pages, or if I transfer the content of the page to the content of the news. It would be great if I can convert the page title to the news publish date, but I could use the page publishing date as well.
What do you suggest for performing this task?
I would do it via SQL as you mentioned already. Could get tricky if you have multiple content-elements per page that needs to be merged into one tt_news-dataset.
You could also install an extension, that links tt_content-elements with tt_news-records. This way you only have to insert the tt_news-records by traversing the pages and link the content per page to the new tt_news-record. Here are some extension, that link tt_news with content-elements:
ttnews_irre
aba_ttnews_content_con
Here is also an extension that could be worth a look: content2news.
Hope this is useful to you.
Best regards,
Peter
I am working on updating some of my iOS blog apps to get beyond using UIWebViews that load the article URL. I would like to do something more along the lines of Engadget or TUAW where the text from the article and the main picture is all that is loaded when you click on an article from the tableview, but I am having issues getting only the text of the article.
I tried using some DOM Property codes to get the innerBodyText of the HTML, but no matter what DOM property I try, I end up getting header/footer info, advertisements, and more thrown in with the article.
Is there a simple way in iOS using REGEX or something else to get just the text of the article?
I'd recommend looking into Hpple
see this thread for more info