TYPO3 - One page website [closed] - typo3

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 6 years ago.
Improve this question
Is there some best approach to create one page website in TYPO3 ?
My idea is to create navigation in TypoScript and FCEs for every segments so I can link it.
Any ideas?

I have created a one page template as an extension for TYPO3, this can be downloaded from GitHub.
http://github.com/maximilian-mayer/t3onepage

Yeah it's a nice approach.
You can too use javascript to generate the menu based on the number of FCE you find in the content.
The two approach are nice.
I had to mind on this problem for my work.

You can manage all contents by their content id. First add one header and then add one FCE for that header part. Header becomes your menu. Note that you use separate grid for all section(one header and one FCE).
Create a subpart menu for a one page template in typo3
check this link for menu in one page site.

I would solve it either in pure TS or in fluid.
TS-solution:
for navigation use a HMENU as usual, but modify the links to be anchor-links
for the content use another HMENU but instead of the links generate the whole content from that page, for example with a CONTENT object (using the uid from the current (menu)-page as pid for selection). dont forget to insert the anchor.
fluid-solution:
do the same, but instead of TS use the according VHs from ext:vhs: v:page.menu, v:render.record

Related

github issue feedback like on microsoft docs [closed]

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 1 year ago.
Improve this question
When you go to https://learn.microsoft.com/en-gb/aspnet/core/getting-started/?view=aspnetcore-3.1&tabs=macos for example, or any other microsoft docs, and the end of the page there is github feedback - you can open an issue directly on the site or on guthub, as the docs are published on github.
I want to do something like this for my website, where people reading articles can suggest improvements. This is a good way to make a wiki like site. Is there a way to do it?
If you just want a URL for opening a blank issue, all you need is to provide a link to https://github.com/<user-name>/<repo-name>/issues/new.
If you want the issue to have prefilled text, you can use query parameters to generate the URL. This help page describes how this can be done.
The easy way would be to create an issue template on GitHub, and then use the template parameter. As quoted in the linked article:
You can use the template query parameter to specify a template to automatically fill the issue or pull request body. The template query parameter works with templates stored in an ISSUE_TEMPLATE or PULL_REQUEST_TEMPLATE subdirectory within the root, docs/ or .github/ directory in a repository.
If a repository contains only the default pull request or issue template, any new issues or pull requests will have the default template in the body.
You can also use the other parameters to customize the issue title, text, labels, etc. This project slightly simplifies this task.
Thank you for your answers, but I found this https://utteranc.es/ and its everything I wanted. And its easy to use. I will leave the other for the right answer, but if someone wants something more out of the box you can use my finding.

SelectPDF Tool to Convert HTML to PDF [closed]

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 2 years ago.
Improve this question
I am trying to use SelectPDF.ConvertURL() on my local machine. When I run this convert I get a PDF that has sizing issues with checkboxes. Checkboxes are too large and not appearing as they appear in the HTML Page
BUT when I go to the http://selectpdf.com/demo/html-to-pdf-converter.aspx and give it the URL for my HTML test document it renders correctly. URL for document is: http://dev.TitleClose.com/BlankLoanEstimate.html
I am using the exact code that is given on the selectpdf.com/demo page.
Any ideas or advice is appreciated
You might need to set a different web page width. Try this sample:
http://selectpdf.com/demo/convert-url-to-pdf.aspx
For an A4 page, the corresponding web page width (to keep the font size) is 793px. More details about the content resizing here:
http://selectpdf.com/docs/ResizingContentDuringConversion.htm
add in your CSS #mediaprint the sames propierties that you have in you css. that's work for me.
#media print {
…
}

Creating an Access Form [closed]

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 7 years ago.
Improve this question
I am not going to pretend to know anything about creating forms in Access, it is an entirely new concept to me. I have a DB in access that contains a number of tables and queries. I would like to create an access form that I can use as a search form, to look up any particular fields i need. I would simply type in what I was looking for and a list of the tables/queries that relate to it would appear. Is this doable?
The short answer to your question "is this doable" is: yes this is absolutely doable.
A good place to start would be to use the Form Wizard. Then get some training (plenty online) on how to design forms. Dlookup will likely be your friend.
Alternatively, a Report is another way to show a specific record based on some specified criteria (show me address for person A).
Short answer: Yes.
Longer Answer: I dont know what your background is. If this is your first Database project then you have a lot of reading to do and I would go and get myself a good ACCESS book and read it or spend a lot of time on the Microsoft Technet. Thats about as specific as I can get from the question itself.
Perhaps a solution for you:
Step A: Create a form
There are many ways to create forms. You may try this one:
1) In the Access Objects Window (far left on your screen) mark the table or query you want your form be based on. That means: the form shall display all the fields that are in that specific table or query.
2) With your table or query marked, in the "Create" pane of the Ribbon, click the button "Form". This creates a rudimentary form with all the fields from your table or query arranged in a more or less sensible way. (If you do not like the way the fields are arranged, you can re-arrange them, resize them or remove some of them, etc.)
3) Close this form. On closing, you will be asked to enter a name for it so that you can identify it later.
Step B: Use the form for filtering
1) Open that form (now in "form" view, not "design" view, of course)
2) In Home section of the Ribbon, in the Sort&Filter Area, click on the tiny button "Advanced", and from the dropdown select "Filter by form". Having this done, you then can enter various criteria in the fields on your form. Some of them may display dropdowns to choose from existing content. In some fields you may want to enter stuff like
Like "*liv*"
which will search for content containing any of live, lively, oblivious, olive, etc.
3) To apply the filtering, in the Ribbon, Home Section, Sort&Filter Area, click "Toggle filter". This will make your form display only records that comply with your criteria.
4) To wipe out your filter criteria, use the button Advanced --> Clear all filters.
This was a very basic introduction into core functionality of Access. Generally, I would support the other contributors here in saying: go to your local library and take any of the various Access introductory books they have there, read it, and try out what you read. You will make quick progress. (You may as well read any tutorial in the internet, but I personally would recommend a book: you just will have the fun to stroll through the pages, perhaps sitting in your garden, and bump into interesting stuff you probably would not have expected. That will help your progress considerably.)

How to set print and save as pdf icon in TYPO3 pages [closed]

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 10 years ago.
Improve this question
Can anybody help me that how can i set PRINT and save as PDF icon(functionality) in TYPO3 pages ?
Thanks...in advance..
There are many examples in Google and I think that you should browse them, to find the one the best fits your needs.
In general 'historically' print version was suggested to be build with new PAGE cObject which typeNum is set to 98 (of course that's only suggestion) in general going this clue, you should find many examples and other resources by searching in Google for typo3 typeNum 98.
When you'll create alternative PAGE object (and maybe also use modified template for it) you need also add on your webpage a link which be the same as the current URL but with additional param &type=98, when user will click it TYPO3 will open the alternative version of the page. So you can add to this a JS in header which will also start system's print dialog.
You can also search the extensions repository and find something for placing the print button if you are unfamiliar with TypoScript.
PDF rendering is similar from point of view of the frontend, however most probably you need to use some additional lib, so it will be best to search for ready to use solution from the repo.
In general PDF version could be tricky, therefore from my experience I can say that nowadays it's sometimes better to avoid the PDF icon at all or use linking to some external service. Of course all depends on your needs. Remember that there are many programs which are able to create PDF's so if it is not required maybe it's no worth of its effort.
Finally take a look at the AddThis widget it can be also used for easy adding of icons for printing and online PDF creation, additionally you can also send invitations via e-mail, or even share the link on the hundreds social portals. And what's most important installing this is just like adding view lines of HTML code vie TypoScript.

Zend Framework submiting 2 forms with 1 submit [closed]

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 3 years ago.
Improve this question
Okay this might sound simple but there's a catch. I'll try and explain the situation.
I have a page wich is build with a layout and in the center there's a view with 2 buttons and a normal form. The 2 buttons are to switch between two input forms. When the submit is pressed both forms are submitted. The first form is for general information and the second one is used to upload an image along with the information if so desired.
Now to avoid the question why not use one form? it's a request to keep the two seperated in this manner.
So i was considering going with 2 views where the top 2 buttons would act like a submit, creating a POST request with the form data but not actually submiting it to the database. And then redirecting towards the second view where you can upload images.
And then when the actual submit button is pressed i want all the data collected to be written into the database.
Basically it's like a page with 2 Tabs with a form each and only 1 submit button to submit the forms on both tabs.
I just can't get my head around how to create those 2 buttons to store the post data and then have the 'final' submit button use the previous post data and then other form data to create a new combined post data to store in the database.
Anyone have an idea how to accomplish this? Am i approaching this correctly or is there a simpler or cleaner method to doing this?
Thanks in advance!
You have a number of options here, one option is to create one form and add your two seperate sections as SubForms, i.e. instances of Zend_Form_SubForm. Then you can style the forms separately, tab them but keep one submit button for both. Also when you submit, the forms data will be separated into an array element for each of the sub forms.
you can see more about this here:
http://framework.zend.com/manual/en/zend.form.advanced.html#zend.form.advanced.multiPage
another solution i'm fond of is using an action helper to split the process of adding the forms into two pages, similarly to the url above but storing form information inside a session object until both have been validated and then processing both forms at once.
http://framework.zend.com/wiki/display/ZFPROP/Zend_Controller_Action_Helper_Multiform+Proposal+-+Simon+Mundy
http://framework.zend.com/wiki/pages/viewpage.action?pageId=42130
hope this helps.