I have a document, in which there are multiple images inserted as links, i.e. through Insert > Picture > From file > Link = [v].
The overall file structure looks like this:
C:\Users\John\Desktop\Test\
|-- test.odt
|-- image1.png
|-- image2.png
And now I want to move the files from "Test" directory to "Images". That is:
C:\Users\John\Desktop\Test\
|-- test.odt
|-- Images\
|-- image1.png
|-- image2.png
And by that reason, the links in document are now broken and need to be fixed.
This assuming there are about 30 images in document, and I want to fix their paths automatically, instead of manually. How it could be done?
I use OpenOffice 4.1.3, but I believe, this task is the same in both Open and Libre office suits.
You want to change the property GraphicURL of the objects on the Drawpage of that Writer file...
What have you tried?
What's not working?
Related
Lets say i have an image link that is stored in mongodb as a string. The image is uploaded somewhere and is accessible. How would i be able to display this thing that holds the string as an image in the ejs or html page?
For example the schema is: User.
And the name that holds the string in the database = user.characterimg
However if i would put that just like that in a ejs file it would only show the string and not the actual image.
I found the solution:
src= <%=user.characterimg%>>
I'm trying to create separate templates for webpages with either a single or a double column structure. Currently my webpage only has one template, placed on the root page which is used by all its subpages.
However, I cannot find the template in myextension/Resources/Private/Templates as this folder is empty. Where is the template located in my extension and where should I add the alternative template?
I assume you use "fluid_styled_template"? Then the templates are in that respective core directory, in "Resources/Private".
If you want to manipulate them, copy them to your sitePackage into "Resources/Private/Extension/fluid_styled_content" (that at least is one of the recommended ways where to place it) and override the TypoScript that "fluid_stlyed_content" provides.
templateis not unique in TYPO3 context. we have:
typoscript records, maybe also as files which are included in a record or by PHP
HTML files, which are define a markup for parts of the website
they can be differed in
Marker-Templated. The old and less and less used kind with markers and subparts as placeholders for data defined in typoscript
Fluid templates. The modern kind with control structures and data objects
with the statemant
my webpage only has one template, placed on the root page
it is not clear what you mean:
records are defined in pages -> typoscript templates
maybe you mean in the root page a template is selected. that could mean HTML templates, probably fluid templates as the path myextension/Resources/Private/Templates matches the usual structure for fluid templates.
assuming fluid templates:
Templates are search in a list of folders. This list is managed in typoscript.
Any usage has it's own list and the list of your main/page template probably is at page.10.templatePaths. You can look for it in the TSOB (Typoscript Object browser)
If the list consists of one entry only you have only the basic config.
As the list of folders is consulted each time a template (,partial, layout) is accessed and only that file with matching name in the folder with highest priority is taken you can add your folders with higher numbers in the list so you do not need to change the original files (use copies in your folder to modify) or add files to the original folder (inside of other extensions).
So you need two things:
create your template file in an appropriate folder
(ext:myextension/Resources/Private/Templates sounds good)
and add this folder to the list of folders for these templates
(e.g. page.10.templatePaths.20 = EXT:myextension/Resources/Private/Templates)
I have a CSS file that is in the same view/scripts folder as the phtml file that will use it. What is the correct parameter for $this->headLink()->appendStylesheet() for such a file?
Your css file must be accessible in public directory or public subdirectory like public/css/your_css_file.css
In your view, you can do something like this:
$this->headLink()->appendStylesheet($this->baseUrl() .'/css/your_css_file.css');
Normally your CSS file should be accessible publicly (within the public folder).
However, if you still want to leave it there (you will have performance issues especially if your file is large) just do so within your view file
<?php
$this->headStyle()->captureStart();
echo $this->partial('css-file.css');
$this->headStyle()->captureEnd();
?>
This will allow your file contents to be output, captured and then "injected" in the appropriate place in the layout.
Hope it helps
I have used the assemble/boilerplate-site as a test bed. Following the examples on http://assemble.io/docs/Data.html I have created a page named test.hbs and a data file named test.yml.
The yaml file contains:
title: stuff
when running grunt assemble, a test.html page is assembled into the destination directory. if my test.hbs contains the tag {{title}} the title is not added from the data file, however a tag of {{test.title}} does add the title from the data file.
on the docs page http://assemble.io/docs/options-data.html it states:
When using "external" data files (versus YAML front matter), if name of the data file is the same as the associated template then Assemble will automatically associate the two files.
I also need to use the {{title}} tag in my layout. This works if I use YFM at the top of the page rather than an external data file.
Am I misunderstanding how external data files are associated with a page or am I missing something?
You can use {{page.title}} in your test.hbs and layout.hbs files to access the variable without having to specify the actual page name.
I am writing the documentation for a repo and in order to show how files are organized I created a map. This is what I wrote in the editor
But this is what actually displayed on GitHub
What are my options here to make a good map? Here is a link to my project on GitHub.
Why don't you use nested lists, like so:
One
One.1
One.1
One.1
Two
Two.2
Two.3
Two.4
Three
Three.2
Three.3
Three.4
Three.5
Further reading: http://daringfireball.net/projects/markdown/syntax#list
Remove the br tags and add triple backticks.
```
Level 1
|
|- Level 2
|- Level 3
```