Using #docRoot annotation as javadoc annotation, i want to add logo of our company on each documentation , so i add this snippet :
<img src="{#docRoot}/logo.png">
However,Preview of javadoc don't display logo image.
Where should i put logo.png image to be displayed in javadoc :
1. ./myproject/
2. ./myproject/web-app/
3. ./myproject/web-app/images/
4. or where...
i try to put it at ./myproject/ but in vain
I believe you would want to stick it in an images folder located under web-app. An example path would be:
myproject/web-app/images/skin/<YOUR LOGOS>
That should enable url(../images/skin/<YOUR LOGOS>) to work.
edit: The above solution assumes you are calling for logos and images from your CSS.
Related
I have added an image in README.md file something like this
![Logo](./images/Logo-doc.png)
The image displayed on Bitbucket is too large and I want to be able to resize the image. Following is what I have tried which didn't work
![Logo](./images/Logo-doc.png){:width="320px"}
![Logo](./images/Logo-doc.png =320x)
![Logo](./images/Logo-doc.png){width=320}!
![Logo](./images/Logo-doc.png){width=320px}
Can someone please help me with a solution to resize the image in README.md file?
You can always use HTML in a MarkDown document.
The equivalent code would be:
<img src="./images/Objy-InfiniteGraph-doc.png" alt="InfiniteGraph Logo" width="320">
I want to use an icon image like in TourDeJewel, but when I use this code then the text "MENU" is showing instead of icon picture. (sdk 0.9.6)
<j:IconButton >
<j:icon>
<js:FontIcon text="menu" material="true"/>
</j:icon>
</j:IconButton>
After check with browser inspector tool then material-icons css is missing
Could someone tell me why ?
Thank you in advance...
To get the CSS linked automatically you need to use MaterialIconType class at least one time so compiler can process it.
The reason is that class has an inject_html directive in its constructor so when the compiler finds it includes it automatically.
In Tour De Jewel we use that class through binding:
<j:IconButton click="drawer.isOpen ? drawer.close() : drawer.open()">
<j:icon>
<js:FontIcon text="{MaterialIconType.MENU}" material="true"/>
</j:icon>
</j:IconButton>
(Note in that file we use a binding bead at top level to make the binding work (i.e: <js:ContainerDataBinding/>).
If you don't want to use MaterialIconType you can link it manually using a custom html template.
I'm thinking of creating a help file in Markdown, to add to an Xcode project.
I'd prefer to include image files in the project, rather than refer to urls.
I know for example that I can do this:
![my image name](http://example.com/aFolder/myImage.png),
but I'd like to do something like this:
![my image name](file://myImage.png)
or
![my image name](myImage.png)
Any ideas on what to try, or am I barking up the wrong tree trying to use Markdown?
Thanks
![image alt text](myImage.png)
is correct. However, the path (myImage.png) is relative to your markdown file, so in this case, myImage.png would be in the same directory as the markdown file. If, for instance, it's in its own folder called images, you'd do ![my image name](images/myImage.png)
I'm working on prestashop and I'm Trying to override "order detail page" in front (customer's details orders).
This is how I did :
I copied file \controllers\front\OrderDetailController.php into folder \override\controllers\front\OrderDetailController.php
I copied also default template file order-detail.tpl into folder override/customtemplate/order-detail.tpl
And In OrderDetailController.php I have specified template directory like that
$this->setTemplate(_PS_OVERRIDE_DIR_ . '/themes/parfum_evo/order-detail.tpl');
I tried, it works fine except translations. Even watching the documentation, no test solution seems to work.
Could anyone help me? Thank you in advance :'(
The php override sits in the correct place. As for the other, you specified the path the override/customtemplate/order-detail.tpl but then placed it in override/themes/parfum_evo/order-detail.tpl. I take it as customtemplate is farfum_evo really, but you need to add another one named themes, after override, using that structure. I think. Because there is a hook named
DisplayOverrideTemplate
Which should take care of this, while I believe setTemplate for controllers will always grab from the main theme folder
I'm developing a website based on drupal on my localhost. I have a problem with urls.
for a url like this :
http://localhost:81/my_website/library
I must output image src this way :
<img src="<?php print $directory; ?>/image/header/headerR.png"/>
but when the above url is changed to this
http://localhost:81/my_website/library/
I must output image src this way :
<img src="../<?php print $directory; ?>/image/header/headerR.png"/>
I mean it must refer to the parent. my website has contextual filter which can be inserted
after library/ .is there any general solution for handling such thing?
If you are printing an image directly to html you must use a non relative path to move to other dirs. You must always start the image path with /, so the image is relative to the domain, in this case, localhost. Example
<img src="/<?=$whatever; ?>" />
Also try building the image in the Drupal way. See these functions:
theme_image
theme_image_style
image_style_url
Use any of them, as you need.
Hope that helps.
use only relative path and put theme related images into your theme folder
lets say that your theme is named YOURTHEME
when you do <img src="/image/header/headerR.png"/>
it should load image from http://localhost:81/sites/all/themes/YOURTHEME/iamge/header/headerR.png
but if you need to load images from different than theme directory you will need to use CDN module https://drupal.org/project/CDN
you will be also able to load images easily from other server, its usefull when working on local DEV and getting images from production server