Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to create a custom LibreOffice Writer template of our company. This template should include a disclamer in the footer of the last page of each document.
In our existing M$ Word template we use a field with "IF({current page}={last page};...", but LibreOffice seems not to be able to use the current page number in conditional texts.
The LibreOffice Help page says:
You cannot use internal variables, such as page and chapter numbers, in condition expression.
Using a custom page style for the last page also seems not to be a good decision, because if someone inserts too much content into that "last page" and causes an automatic page break then he gets the disclamer twice.
How can I create a footer in LibreOffice that will automatically be shown on the last page of a document, but not on any other page?
edit: I managed to write a macro that can insert a page break for the last page. Still not the complete solution, but might be a way to go:
Sub PageBreakForLastPage
' create cursor
Cursor = ThisComponent.CurrentController.getViewCursor
' move to start of last page
Cursor.jumpToLastPage
Cursor.jumpToStartOfPage
' create page break
Cursor.BreakType = com.sun.star.style.BreakType.PAGE_BEFORE
Cursor.PageDescName = "First Page"
End Sub
We had the same issue using the OpenOffice template engine (i suppose it's the same :D) and the only way to solve this problem was to add a footer with a custom field for the page number and fill this after each page is created.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
Hello stackoverflow friends,
i have a problem, i'm new to typo3 and want to create some text with image. i try it for some time now but i dont get it. I don't have an insert image button in my text editor. installed several extensions, CKEditor and stuff.
Here is an image of my symbols:
We tried "text & media" and "text and pictures". There is just no button for inserting an image.
Yours sincerely or so
"Text and Images" and "Text and Media" content elements don't add images to the CKEditor text; you add them with the "Images" tab and they are not "embedded" in the text written with CKEditor. They are written in the HTML wrapped with the markup necessary to create a grid of images with multiple rows/columns.
In the "Gallery Settings" box inside the same tab you can decide the position of the images with respect to the text.
If you want to add support for the images inside the CKEditor, you have to install the extension https://extensions.typo3.org/extension/rte_ckeditor_image/
You can find here some articles about how to customize the configuration of CKEditor on TYPO3:
https://typo3worx.eu/2017/02/configure-ckeditor-in-typo3/
https://usetypo3.com/ckeditor.html
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I would like to hide certain posts on my tumblr homepage that have the a specific tag (#journal). I've already tried some codes, but it didn't work.
Here is my actual HTML code:
pastebin.com/JT4KtyVz
My tumblr:
http://heynotspecial.tumblr.com/
Do you guys know how to do that?
Sorry, not used to post code here :(
You need to identify a commonality for posts that have the Journal # tag. I suspect there could be a class name applied to posts with this tag.
You can apply this rule in your CSS stylesheet to hide div elements with the infscrjournal classname.
{block:HomePage}
div[class~=infscrjournal] {
display: none;
}
{/block:HomePage}
**** you need to surround the code with the homepage variable to make sure it only appears on the first page and nothing else. Try that
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
i'm a little confused about how search engines will treat this two cases:
i have a page "all articles" which has previews of recent articles( some text plus read more) and a page for each article, will this be considered as duplicate content by search engines?
when a search engine indexes a page does it index also the content on the page that is loaded via ajax? (in my case the page "all articles" load the previews of articles via ajax.
Thank you.
For your first question, no it will not be treated as duplicate content, those are just previews.
For the second one , search engines DO index Ajax content if they are crawlable.
You can make sure they are crawlable by ensuring your site has theese tags:
https://developers.google.com/webmasters/ajax-crawling/docs/learn-more
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am using Drupal 7.9 and the images generate a numerical id automatically. It causes W3C validation error value of attribute "id" invalid: "1" cannot start a name because id attribute doesn't allow a digit as its name. The image tag is
<img id="1" class="media-image" alt="contact" src="path to image" typeof="foaf:Image">.
How can I get rid of this? Any help will be greatly appreciated.
Update. As #SvartalF said, how can I prefix string to id in Drupal? I tried jQuery for that. But didn't help. This problem exists only with images uploaded via wyswyg CK editor
HTML id value must begin with a letter, you can check it here.
So, you can prepend id with a some-prefix like a image-, or use HTML5 data-* attributes
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
This can be applied to any language/UI project. When the code is automatically generated, is there a need to name all of the UI controls? Presently I only name the ones I am referencing in code (although admittedly sometimes I get lazy and leave them). Or do you stick with the pre-generated names (textbox1, splitContainer1, menuStrip1, etc..)?
If you name them, how do you prevent overlap such as MyDataGridView1, MyDataGridView2, etc..
I only name the ones I reference too - most modern IDEs will easily rename a widget later if I need to reference it in code.
I usually give the names some meaning - accountDataView, currentBalanceDataView - it must relate to a concept like submitButton for the button that submits a form.
I always try to set GenerateMember to false for the controls I don't use in the code, but for the controls I do use in code, I usually choose meaningful names.
For example, if there was a button that submitted something then I would choose submitBtn. If there was a username textbox then I would call it usernameTxt. Etc, etc.
A small list:
Buttons: btn
Textboxes: txt
Labels: lbl
Checkboxes: chk
Radio buttons: rad
List boxes: lst
Dialogs: dlg
...but above all else, just use what makes sense.
I name the controls that I access and have experimented with using the "ux" prefix so that I can find them easily with Intellisense. That way if I can't remember the exact name of a control I know it at lease starts with ux. Also, if I change the control type, the name can stay the same. I came across this a while back, but can't seem to find the article about it now.
uxFirstName