01-19-2008, 10:51 PM | #1 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
softlinks via manifest.xml
Last week there was a post to i to i blog about: how to easily access content on the external memory. In internal memory, it involves adding a subdirectory containing just a manifest.xml such as:
Code:
<package> <symlink>/mnt/cf/books</symlink> </package> |
01-20-2008, 05:02 AM | #2 |
Addict
Posts: 281
Karma: 904
Join Date: Oct 2007
Location: Kent, UK
Device: iRex iLiad, Psion 5MX, nokia n800
|
It is indeed a good method, but you need to take care. See this thread on the irex forum. Note what happens when you delete a symlink using the contentlister---you delete what the link points to, not the link itself. I was hoping that we could add an image to show that it is a link, but it seems we cannot.
|
01-20-2008, 05:55 AM | #3 |
Connoisseur
Posts: 56
Karma: 63
Join Date: Apr 2007
|
I've been thinking about this feature. Isn't there a command you can put in a shell script that changes the directory that the contentlister displays?
Then you could make your directory in for example books, place a manifest file in it that points to the shell script like thoose in the installer packages and avoid thoose problems like deleting or images... |
01-20-2008, 06:09 AM | #4 |
Addict
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
|
As I just pointed out in the iRex forum, there is another method for linking directories without having the delete problem. Add a new directory and put the following manifest.xml in it:
Code:
<package> <metadata> ... </metadata> <directory> <content>/mnt/cf/documents</content> </directory> </package> |
01-20-2008, 07:39 AM | #5 |
Addict
Posts: 281
Karma: 904
Join Date: Oct 2007
Location: Kent, UK
Device: iRex iLiad, Psion 5MX, nokia n800
|
Cool. And by including
Code:
<y-metadata> <image>link.png</image> </y-metadata> Now I just need to symlink this post to the thread on the irex forum |
06-01-2008, 02:46 AM | #6 |
Connoisseur
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
|
Lost...
Hi Thomas and Daudi,
The softlinks feature seems a very good feature that I would like to be able to install, but I have to admit that I am somewhat lost in your experts comments. Thomas recommended to install another directory, and i am wondering if I should install the manifest files described by Wallcraft first? or should I just add a new directory (where?) and create a manifest file (where? CF internal or both?) with the content described by Thomas and Daudi?? I am very confused and would really appreciate if one of you would be kind as to provide me with some step by step installation/creation. Thanks a million in advance. |
06-01-2008, 06:12 AM | #7 |
Addict
Posts: 281
Karma: 904
Join Date: Oct 2007
Location: Kent, UK
Device: iRex iLiad, Psion 5MX, nokia n800
|
OK, this should be a complete recipe:
Here's a complete manifest.xml file Code:
<?xml version="1.0" encoding="utf-8"?> <package> <metadata> <dc-metadata> <Title>This is the title</Title> <Description>This is the description</Description> <Date>2008-04-21T11:41:48</Date> </dc-metadata> <y-metadata> <image>link.png</image> </y-metadata> </metadata> <directory> <content>/mnt/usb/iliad</content> </directory> </package> Code:
<y-metadata> <image>link.png</image> </y-metadata> |
06-18-2008, 07:29 PM | #8 |
Connoisseur
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
|
Follow up
Dear Daudi,
Thank you very much for your response and the symlink examples sent. Please accept my apologies as I was on a business trip and was not able to respond to you earlier. I was finally able to test your symlink files with mitigated success. 1. First test: I copied the symlink files that you provided (manifest xml and link png) to the CF book folder and I was able to read the books on the internal memory from the CF Book folder successfully. In addition to the fact that this is not really what I want to ultimately accomplish, the other issue in that case was that i could not access the other books uploaded on my CF Book folder, but only books from the internal memory were accessibles. 2. Second test: I made a couple of modifications to the book manifest xml file that you provided (Description: Books on the CF; content: mnt/CF/Books), and I copied the modified manifest and the link png files to the existing internal memory Book folder, but this time was not able to access books from the CF/Book folder??? when I tried to click on the link file which appeared I opened a Notes type of file with the png.... I guess what I really want to be able to accomplish is to have a link from the intenal memory folders (Books, Documents, Notes and Newspapers) to the CF folders (Books, Documents, Notes and Newspapers) so that I can access my CF files (almost all of them) quicker by using the iliad buttons. I really don't know what i am doing wrong, but i will appreciate if you can again extend me a helping hand.. Thanks a million in advance, Dabon. |
06-19-2008, 02:23 AM | #9 |
Addict
Posts: 281
Karma: 904
Join Date: Oct 2007
Location: Kent, UK
Device: iRex iLiad, Psion 5MX, nokia n800
|
OK, try these. These assume that you have folders called:
books documents notes newspapers on your cf card. So, thats's: /mnt/cf/books etc. Note that these are lower case. Copy the attached symlink entries to the appropriate internal memory locations of your iliad. They could in fact go anywhere, as they always point to the same place, but to achieve what you want just copy the cf-books folder to the books folder on internal memory; copy the cf-notes folder to the notes folder on your iliad, and so on. Then you can press the iliad Books button and one of the entries will be one that points to Books on the CF. If you want this symlink to always be the first entry in the contentlister, change the name of the folder from cf-books to 00cf-books (i.e. put a couple of zeros at the front). |
06-19-2008, 03:04 AM | #10 |
Connoisseur
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
|
BINGO!!!
THANK YOU SOOO MUCH, Daudi!!!! You saved my life!!!
This is exactly what I was looking for...I sincerely hope that one day will come when I will somehow be able to 'properly' thank you and all the others iliad developers for your dedicated hard work..helping total strangers... May God bless you!!! Take good care, Dabon. |
06-19-2008, 04:44 AM | #11 |
Addict
Posts: 281
Karma: 904
Join Date: Oct 2007
Location: Kent, UK
Device: iRex iLiad, Psion 5MX, nokia n800
|
You're welcome! I'm glad it is sorted.
|
02-17-2009, 03:33 AM | #12 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2009
Device: iliad
|
Just a comment:
This does not work when you try and link to another directory, which contains a file that you actually want to open. i.e. it just works for pointing to directories. For example: I've got a master directory containing all my journal articles, then I've got category directories in which I want to link to the original article in the master directory. Then I only have one copy of each article, but I can see it in each appropriate category directory. I also want only one set of scribbles. The only way I found to do this, was reformatting the CF to ext2, then using static links. This way, deleting the link will delete the original pdf and manifest, and keep 'undeleted' directories floating around. Something I have to work around. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad manifest.xml file order | dedo | iRex Developer's Corner | 2 | 10-05-2009 07:47 PM |
iLiad which program make a new manifest.xml file? | harpum | iRex Developer's Corner | 3 | 06-23-2009 09:45 AM |
manifest.xml templates | yokos | iRex | 8 | 07-04-2008 06:16 PM |
iLiad More Manifest Tags | arivero | iRex Developer's Corner | 21 | 08-19-2006 03:21 PM |
iLiad icons and other manifest.xml tricks | arivero | iRex Developer's Corner | 3 | 08-01-2006 10:45 AM |