Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
1e630d06
Commit
1e630d06
authored
Jun 12, 2019
by
Carsten Rose
Browse files
Manual.rst: Excel Export / PDF export replace 'uid:<int>' with 'uid:<tt-content record id>'
parent
7b80f8cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Documentation/Manual.rst
View file @
1e630d06
...
...
@@ -6596,10 +6596,10 @@ Parameter and (element) sources
* *url*: `u:
<url>
` - any URL, pointing to an internal or external destination.
* *uid*: `uid:
<
int
>
` - the tt_content
s
.uid of a QFQ PageContent record (shown on hover in the backend). This will render
only the
raw QFQ processed bodytext of the specified PageContent, without additional tags, styles, or CSS includes.
QFQ will retrieve the
PageC
ontent's bodytext from the Typo3 database, parse it, and render it as a PDF. Parameters can be
passed: `uid:
<
int
>
[?arg1=value1][
&
arg2=value2][...]` and will be available in the SIP store for the QFQ PageContent,
* *uid*: `uid:
<
tt-content
record
id
>
` - the tt_content.uid of a QFQ PageContent record (shown on hover in the backend). This will render
only the
specified QFQ content record, without any Typo3 layout elements (Menu, Body,...)
QFQ will retrieve the
tt-c
ontent's bodytext from the Typo3 database, parse it, and render it as a PDF. Parameters can be
passed: `uid:
<
tt-content
record
id
>
[?arg1=value1][
&
arg2=value2][...]` and will be available in the SIP store for the QFQ PageContent,
or passed as wkhtmltopdf arguments, if applicable.
* *WKHTML Options* for `page`, `urlParam` or `url`:
...
...
@@ -6805,14 +6805,14 @@ Setup
* Create a special column name `_excel` (or `_link`) in QFQ/Report. As a source, define a T3 PageContent, which has to
deliver the dynamic content (also `excel-export-sample`_). ::
SELECT CONCAT('
d
:final
.xlsx
|
M
:excel
|
s
:
1
|
t
:Excel
(
new
)|
uid
:
43
'
)
AS
_link
SELECT CONCAT('
d
:final
.xlsx
|
M
:excel
|
s
:
1
|
t
:Excel
(
new
)|
uid
:
<
tt-content
record
id
>
'
)
AS
_link
*
Create
a
T3
PageContent
which
delivers
the
content
.
*
It
is
recommended
to
use
the
`
uid
:<
int
>
`
syntax
for
excel
imports
,
because
there
should
be
no
html
code
on
the
*
It
is
recommended
to
use
the
`
uid
:<
tt-content
record
id
>
`
syntax
for
excel
imports
,
because
there
should
be
no
html
code
on
the
resulting
content
.
QFQ
will
retrieve
the
PageContent
'
s
bodytext
from
the
Typo3
database
,
parse
it
,
and
pass
the
result
as
the
instructions
for
filling
the
excel
file
.
* Parameters can be passed: `uid:
43
?param=value¶m2=value2` and will be accessible in the SIP Store (S) in the
*
Parameters
can
be
passed
:
`
uid
:
<
tt-content
record
id
>
?
param
=
<
value
1
>
&
param2
=
<
value2
>
`
and
will
be
accessible
in
the
SIP
Store
(
S
)
in
the
QFQ
PageContent
.
*
Use
the
regular
QFQ
Report
syntax
to
create
some
output
.
*
The
newline
at
the
end
of
every
line
needs
to
be
CHAR
(
10
).
To
make
it
simpler
,
the
special
column
name
`
...
AS
_XLS
`
...
...
@@ -6881,17 +6881,17 @@ In Report Syntax::
..
_
`
excel-export-sample
`
:
Excel export samples::
Excel
export
samples
(
54
is
a
example
<
tt-content
record
id
>)
::
#
From
scratch
(
both
are
the
same
,
one
with
'_excel'
the
other
with
'_link'
)
SELECT
CONCAT
(
'd:new.xlsx|t:Excel (new)|uid:54'
)
AS
_excel
SELECT
CONCAT
(
'd:new.xlsx|t:Excel (new)|uid:54|M:excel|s:1'
)
AS
_link
#
Template
SELECT CONCAT('
d
:final
.xlsx
|
t
:Excel
(
template
)|
F
:fileadmin
/
template
.xlsx
|
uid
:
2
4
') AS _excel
SELECT
CONCAT
(
'd:final.xlsx|t:Excel (template)|F:fileadmin/template.xlsx|uid:
5
4'
)
AS
_excel
#
With
parameter
(
via
SIP
)
-
get
the
Parameter
on
page
'exceldata'
with
'{{arg1:S}}'
and
'{{arg2:S}}'
SELECT CONCAT('
d
:final
.xlsx
|
t
:Excel
(
parameter
)|
uid
:
32
&
arg1
=
hello
&
arg2
=
world
'
)
AS
_excel
SELECT
CONCAT
(
'd:final.xlsx|t:Excel (parameter)|uid:
54
&arg1=hello&arg2=world'
)
AS
_excel
..
_dropdownMenu
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment